public class TestInfo extends Object implements Comparable<TestInfo>
| Modifier | Constructor and Description |
|---|---|
|
TestInfo(Class<?> contractTest,
Contract c)
Constructor
|
protected |
TestInfo(Class<?> testSuite,
ContractImpl impl,
Method m)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(Throwable t)
Add an error to the error list.
|
int |
compareTo(TestInfo o) |
boolean |
equals(Object o) |
String |
getContractName()
Get the canonical name of the class under test.
|
Class<?> |
getContractTestClass()
Get the contract test class.
|
List<Throwable> |
getErrors()
Get the list of exceptions from the constructor.
|
Class<?> |
getInterfaceClass()
Get interface under test.
|
String |
getInterfacePackageName()
Get the package name of the interface under test..
|
org.junit.runners.model.TestClass |
getJunitTestClass()
Get the TestClass for the contract test.
|
Method |
getMethod()
Get the method to retrieve the producer implementation.
|
String |
getSimpleInterfaceName()
Get the simple name of the interface under test.
|
String |
getSimpleTestName()
Get the contract test simple name.
|
Class<?>[] |
getSkipTests()
Get an array of classes to skip.
|
String |
getTestName()
Get the contract test canonical name.
|
boolean |
hasErrors()
Determine if there are errors from this TestInfo constructor.
|
int |
hashCode() |
boolean |
isAbstract()
Return true if the contract test is abstract.
|
String |
toString() |
protected TestInfo(Class<?> testSuite, ContractImpl impl, Method m)
testSuite - The contract test this is part ofimpl - The class under test.m - The method to retrieve the producerpublic void addError(Throwable t)
t - The error to add.public List<Throwable> getErrors()
public boolean hasErrors()
public Class<?>[] getSkipTests()
public String getInterfacePackageName()
public String getSimpleInterfaceName()
public String getSimpleTestName()
public String getContractName()
public String getTestName()
public boolean isAbstract()
public Class<?> getContractTestClass()
public org.junit.runners.model.TestClass getJunitTestClass()
public Class<?> getInterfaceClass()
public Method getMethod()
public int compareTo(TestInfo o)
compareTo in interface Comparable<TestInfo>Copyright © 2013-2016 XENEI.com. All Rights Reserved.