Skip navigation links
A C D E F G H I L M N O P R S T V 

A

add(TestInfo) - Method in class org.xenei.junit.contract.info.ContractTestMap
Add a TestInfo to the map.
add(Class<?>) - Method in class org.xenei.junit.contract.tooling.InterfaceInfo
Add a test to the list of tests that apply to the interface.
addError(Throwable) - Method in class org.xenei.junit.contract.info.TestInfo
 

C

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.

D

describeChild(Runner) - Method in class org.xenei.junit.contract.ContractSuite
 
describeChild(FrameworkMethod) - Method in class org.xenei.junit.contract.ContractTestRunner
 
Dynamic - Interface in org.xenei.junit.contract
Interface that defines a test suite as being dynamic.
Dynamic.Inject - Annotation Type in org.xenei.junit.contract
The Dynamic.Inject annotation specifies the getter to be called to retrieve an instance of a producer for the suite under test.
DynamicSuiteInfo - Class in org.xenei.junit.contract.info
Handles dynamic suites.
DynamicSuiteInfo(Class<? extends Dynamic>, ContractImpl) - Constructor for class org.xenei.junit.contract.info.DynamicSuiteInfo
Constructor
DynamicTestInfo - Class in org.xenei.junit.contract.info
Handles tests in dynamic suites.
DynamicTestInfo(Class<?>, ContractImpl, DynamicSuiteInfo) - Constructor for class org.xenei.junit.contract.info.DynamicTestInfo
 

E

equals(Object) - Method in class org.xenei.junit.contract.info.TestInfo
 

F

findAnnotatedGetter(Class<?>, Class<? extends Annotation>) - Static method in class org.xenei.junit.contract.MethodUtils
Find a getter with the specified annotation.
findAnnotatedSetter(Class<?>, Class<? extends Annotation>) - Static method in class org.xenei.junit.contract.MethodUtils
Find a setter with the specified annotation.
findClasses(String, String) - Static method in class org.xenei.junit.contract.ClassPathUtils
Recursive method used to find all classes in a given directory and subdirs.

G

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.

H

hashCode() - Method in class org.xenei.junit.contract.info.TestInfo
 

I

InterfaceInfo - Class in org.xenei.junit.contract.tooling
The information about an interface.
InterfaceInfo(Class<?>) - Constructor for class org.xenei.junit.contract.tooling.InterfaceInfo
Constructor
InterfaceReport - Class in org.xenei.junit.contract.tooling
 
InterfaceReport(String[], String[], ClassLoader) - Constructor for class org.xenei.junit.contract.tooling.InterfaceReport
 
IProducer<T> - Interface in org.xenei.junit.contract
An interface that produces the object under test for the Contract tests.
isAbstract() - Method in class org.xenei.junit.contract.info.TestInfo
Return true if the contract test is abstract.

L

listTestInfo() - Method in class org.xenei.junit.contract.info.ContractTestMap
A list of all test Infos.
logErrors(Logger) - Method in class org.xenei.junit.contract.info.TestInfoErrorRunner
 

M

main(String[]) - Static method in class org.xenei.junit.contract.tooling.InterfaceReport
Run the interface report generation.
MethodUtils - Class in org.xenei.junit.contract
Static methods to find annotated getter and setters.
MethodUtils() - Constructor for class org.xenei.junit.contract.MethodUtils
 

N

newInstance() - Method in interface org.xenei.junit.contract.IProducer
Return a new instance of T.
NoContractTest - Annotation Type in org.xenei.junit.contract
Annotation to declare a contract test is not required for this interface.

O

org.xenei.junit.contract - package org.xenei.junit.contract
 
org.xenei.junit.contract.info - package org.xenei.junit.contract.info
 
org.xenei.junit.contract.tooling - package org.xenei.junit.contract.tooling
 

P

populateInstance() - Static method in class org.xenei.junit.contract.info.ContractTestMap
Populate and return a ContractTestMap with all the contract tests on the class path.
populateInstance(ClassLoader) - Static method in class org.xenei.junit.contract.info.ContractTestMap
Populate and return a ContractTestMap with all the contract tests on the classpath.
populateInstance(ClassLoader, String[]) - Static method in class org.xenei.junit.contract.info.ContractTestMap
 

R

run(RunNotifier) - Method in class org.xenei.junit.contract.info.TestInfoErrorRunner
 
runChild(Runner, RunNotifier) - Method in class org.xenei.junit.contract.ContractSuite
 

S

SuiteInfo - Class in org.xenei.junit.contract.info
Class that contains the contract test and the class that is the contract as well as the method used to get the producer implementation for the suite tests.
SuiteInfo(Class<?>, ContractImpl) - Constructor for class org.xenei.junit.contract.info.SuiteInfo
Constructor
SuiteInfo(Class<?>, ContractImpl, Method) - Constructor for class org.xenei.junit.contract.info.SuiteInfo
 

T

TestInfo - Class in org.xenei.junit.contract.info
Class that contains the contract test and the class that is the contract as well as the method used to get the producer implementation for the tests.
TestInfo(Class<?>, ContractImpl, Method) - Constructor for class org.xenei.junit.contract.info.TestInfo
Constructor
TestInfo(Class<?>, Contract) - Constructor for class org.xenei.junit.contract.info.TestInfo
Constructor
TestInfoErrorRunner - Class in org.xenei.junit.contract.info
 
TestInfoErrorRunner(Class<?>, TestInfo) - Constructor for class org.xenei.junit.contract.info.TestInfoErrorRunner
 
toString() - Method in class org.xenei.junit.contract.info.TestInfo
 

V

validateConstructor(List<Throwable>) - Method in class org.xenei.junit.contract.ContractTestRunner
Adds to errors if the test class has more than one constructor, or if the constructor takes parameters.
A C D E F G H I L M N O P R S T V 
Skip navigation links

Copyright © 2013-2015 XENEI.com. All Rights Reserved.