public class TestInfo extends java.lang.Object implements java.lang.Comparable<TestInfo>
| Modifier | Constructor and Description |
|---|---|
|
TestInfo(java.lang.Class<?> contractTest,
Contract c)
Constructor
|
protected |
TestInfo(java.lang.Class<?> testSuite,
ContractImpl impl,
java.lang.reflect.Method m)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.Throwable t)
Add an error to the error list.
|
int |
compareTo(TestInfo o) |
boolean |
equals(java.lang.Object o) |
java.lang.Class<?> |
getClassUnderTest()
Get class under test.
|
java.lang.String |
getClassUnderTestPackageName()
Get the package name of the class under test..
|
java.lang.String |
getContractName()
Get the canonical name of the class under test.
|
java.lang.Class<?> |
getContractTestClass()
Get the contract test class.
|
java.util.List<java.lang.Throwable> |
getErrors()
Get the list of exceptions from the constructor.
|
org.junit.runners.model.TestClass |
getJunitTestClass()
Get the TestClass for the contract test.
|
java.lang.reflect.Method |
getMethod()
Get the method to retrieve the producer implementation.
|
java.lang.String |
getSimpleClassUnderTestName()
Get the simple name of the class under test.
|
java.lang.String |
getSimpleTestName()
Get the contract test simple name.
|
java.lang.Class<?>[] |
getSkipTests()
Get an array of classes to skip.
|
java.lang.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.
|
java.lang.String |
toString() |
protected TestInfo(java.lang.Class<?> testSuite,
ContractImpl impl,
java.lang.reflect.Method m)
testSuite - The contract test this is part ofimpl - The class under test.m - The method to retrieve the producerpublic TestInfo(java.lang.Class<?> contractTest,
Contract c)
contractTest - The contract under test.c - The Contract annotation for the contractTestpublic void addError(java.lang.Throwable t)
t - The error to add.public java.util.List<java.lang.Throwable> getErrors()
public boolean hasErrors()
public java.lang.Class<?>[] getSkipTests()
public java.lang.String getClassUnderTestPackageName()
public java.lang.String getSimpleClassUnderTestName()
public java.lang.String getSimpleTestName()
public java.lang.String getContractName()
public java.lang.String getTestName()
public boolean isAbstract()
public java.lang.Class<?> getContractTestClass()
public org.junit.runners.model.TestClass getJunitTestClass()
public java.lang.Class<?> getClassUnderTest()
public java.lang.reflect.Method getMethod()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2013-2018 XENEI.com. All Rights Reserved.