- ClassPathUtils - Class in org.xenei.junit.contract
-
Package of class path searching utilities
- ClassPathUtils() - Constructor for class org.xenei.junit.contract.ClassPathUtils
-
- cleanUp() - Method in interface org.xenei.junit.contract.IProducer
-
All allocated instances may now be cleaned up.
- compareTo(TestInfo) - Method in class org.xenei.junit.contract.info.TestInfo
-
- computeTestMethods() - Method in class org.xenei.junit.contract.ContractTestRunner
-
Returns the methods that run tests.
- Contract - Annotation Type in org.xenei.junit.contract
-
Annotation to declare a test is the contract test for an interface.
- Contract.Inject - Annotation Type in org.xenei.junit.contract
-
The Contract.Inject annotation specifies the method to be
called to retrieve an instance of a producer for the class under test.
- ContractImpl - Annotation Type in org.xenei.junit.contract
-
Annotation to declare the type the ContractSuite is testing.
- ContractSuite - Class in org.xenei.junit.contract
-
Class that runs the Contract annotated tests.
- ContractSuite(Class<?>, RunnerBuilder) - Constructor for class org.xenei.junit.contract.ContractSuite
-
Called reflectively on classes annotated with
@RunWith(Suite.class)
- ContractTest - Annotation Type in org.xenei.junit.contract
-
Annotation to declare a test method for an interface.
- ContractTestMap - Class in org.xenei.junit.contract.info
-
A map like object that maintains information about test classes and the
classes they test.
- ContractTestMap() - Constructor for class org.xenei.junit.contract.info.ContractTestMap
-
- ContractTestRunner - Class in org.xenei.junit.contract
-
Class to run the Contract annotated tests in a suite or stand alone
- ContractTestRunner(Object, TestInfo, TestInfo) - Constructor for class org.xenei.junit.contract.ContractTestRunner
-
Create a test runner within the ContractTestSuite
- ContractTestRunner(Class<?>) - Constructor for class org.xenei.junit.contract.ContractTestRunner
-
Create a test runner for stand alone test
- createTest() - Method in class org.xenei.junit.contract.ContractTestRunner
-
Create the concrete class passing it the producer instance from the
getter class.
- getAllInterfaces(Class<?>) - Static method in class org.xenei.junit.contract.ClassPathUtils
-
Get all the interfaces for the class.
- getAllInterfaces(Set<Class<?>>, Class<?>) - Static method in class org.xenei.junit.contract.ClassPathUtils
-
Get all the interfaces that the class implements.
- getAnnotatedClasses(TestInfo) - Method in class org.xenei.junit.contract.info.ContractTestMap
-
Find the test classes for the specific contract class.
- getAnnotatedClasses(Set<TestInfo>, TestInfo) - Method in class org.xenei.junit.contract.info.ContractTestMap
-
Find the test classes for the specific contract class.
- getChildren() - Method in class org.xenei.junit.contract.ContractSuite
-
- getClasses(String) - Static method in class org.xenei.junit.contract.ClassPathUtils
-
Find all classes accessible from the context class loader which belong to
the given package and subpackages.
- getClasses(ClassLoader, String) - Static method in class org.xenei.junit.contract.ClassPathUtils
-
Find all classes accessible from the classloader which belong to the
given package and subpackages.
- getClassPathElements() - Static method in class org.xenei.junit.contract.ClassPathUtils
-
Get the array of class path elements.
- getContractName() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the canonical name of the class under test.
- getContractTestClass() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the contract test class.
- getDescription() - Method in class org.xenei.junit.contract.info.TestInfoErrorRunner
-
- getDynamicInjector() - Method in class org.xenei.junit.contract.info.DynamicSuiteInfo
-
- getDynamicInjector() - Method in class org.xenei.junit.contract.info.DynamicTestInfo
-
- getErrors() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the list of exceptions from the constructor.
- getErrors() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
-
Get the set of errors encountered when discovering contract tests.
- getInfoByInterfaceClass(Class<?>) - Method in class org.xenei.junit.contract.info.ContractTestMap
-
Get a TestInfo for a interface under test.
- getInfoByTestClass(Class<?>) - Method in class org.xenei.junit.contract.info.ContractTestMap
-
Get a TestInfo for the test class.
- getInterfaceClass() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get interface under test.
- getInterfaceInfoCollection() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
-
- getInterfacePackageName() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the package name of the interface under test..
- getJunitTestClass() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the TestClass for the contract test.
- getMethod() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the method to retrieve the producer implementation.
- getName() - Method in class org.xenei.junit.contract.ContractTestRunner
-
Returns a name used to describe this Runner
- getName() - Method in class org.xenei.junit.contract.tooling.InterfaceInfo
-
Get the interface class
- getPackageClasses() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
-
- getProducer(Object) - Method in class org.xenei.junit.contract.info.DynamicTestInfo
-
Get a producer that is to be injected in to the test.
- getSimpleInterfaceName() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the simple name of the interface under test.
- getSimpleTestName() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the contract test simple name.
- getSkipTests() - Method in class org.xenei.junit.contract.info.TestInfo
-
- getSuiteClasses() - Method in interface org.xenei.junit.contract.Dynamic
-
- getTestName() - Method in class org.xenei.junit.contract.info.TestInfo
-
Get the contract test canonical name.
- getTests() - Method in class org.xenei.junit.contract.tooling.InterfaceInfo
-
Get the set of tests for the interface.
- getUnImplementedTests() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
-
Search for classes that extend interfaces with contract tests but that
don't have an implementation of the test producer.
- getUntestedInterfaces() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
-
get a set of interfaces that do not have contract tests defined.