public class TestCase extends Annotated implements Comparable<TestCase>
Modifier and Type | Class and Description |
---|---|
static class |
TestCase.Type
Defines the type of a
TestCase |
TEST_CASE_PROPERTIES
Constructor and Description |
---|
TestCase(int id)
Creates a new TestCase object.
|
Modifier and Type | Method and Description |
---|---|
TestCase |
addVarBinding(VarBinding varBinding)
Adds a new variable binding.
|
int |
compareTo(TestCase other) |
boolean |
equals(Object object) |
int |
getId()
Returns the test case id.
|
VarBinding |
getInvalidValue()
Returns the variable that is bound to an invalid value.
|
String |
getName()
Returns the test case name.
|
TestCase.Type |
getType()
Returns the type of this test case.
|
VarBinding |
getVarBinding(String name)
Returns the binding for the given variable.
|
Iterator<VarBinding> |
getVarBindings()
Returns the variable bindings for this function.
|
Iterator<VarBinding> |
getVarBindings(String type)
Returns the bindings for variables of the given type for this function.
|
String[] |
getVarTypes()
Returns the set of
variable type identifiers for this test case. |
int |
hashCode() |
TestCase |
removeVarBinding(String name)
Removes the binding for the given variable.
|
protected void |
setId(int id)
Changes the test case id.
|
void |
setName(String name)
Changes the test case name.
|
String |
toString() |
addAnnotations, getAnnotation, getAnnotationCount, getAnnotationList, getAnnotations, setAnnotation, setAnnotationList
protected void setId(int id)
public int getId()
public void setName(String name)
public String getName()
public TestCase.Type getType()
public TestCase addVarBinding(VarBinding varBinding)
public TestCase removeVarBinding(String name)
public VarBinding getVarBinding(String name)
public VarBinding getInvalidValue()
public Iterator<VarBinding> getVarBindings()
public Iterator<VarBinding> getVarBindings(String type)
public String[] getVarTypes()
variable type
identifiers for this test case.public int compareTo(TestCase other)
compareTo
in interface Comparable<TestCase>
Copyright © 2024 The Cornutum Project. All rights reserved.