Jetif v1.8.0

jetif
Interface MethodSpec


public interface MethodSpec

A MethodSpec is specification of a test method. It consists of method name, parameter specs and expected result spec.

Author:
Vicky Wang

Method Summary
 ObjectSpec getException()
          Returns expected exception for this test method.
 ObjectSpec getExpected()
          Returns expected result of this test method.
 String getName()
          Returns the name of this test method.
 ParamSpec[] getParameters()
          Returns parameter spec array of this test method.
 

Method Detail

getName

public String getName()
Returns the name of this test method. The name should match the method name in code exactly, which means the name is case sensitive.

Returns:
the test method name.

getParameters

public ParamSpec[] getParameters()
Returns parameter spec array of this test method. The parameters should be returned with properly order. An empty array should returns if there is no parameter for this test method.

Returns:
the spec array of parameters, empty array means no parameter.

getExpected

public ObjectSpec getExpected()
Returns expected result of this test method.

Returns:
expected result, null means expected thing of this test method is an exception.

getException

public ObjectSpec getException()
Returns expected exception for this test method.

Returns:
expected exception.

Jetif v1.8.0

Copyright © 2004,2005 Vicky Wang - All Rights Reserved.