Skip navigation links
A C D E F G H I L M N O 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
Add an error to the error list.

C

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
Constructor
ContractTestMap(ClassPathFilter) - Constructor for class org.xenei.junit.contract.info.ContractTestMap
Constructor
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
Constructor.

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.

G

getAllInterfaces(Class<?>) - Method in class org.xenei.junit.contract.info.ContractTestMap
Get all interfaces the class implements.
getAnnotatedClasses(Set<TestInfo>, TestInfo) - Method in class org.xenei.junit.contract.info.ContractTestMap
Find all the test classes that test the interfaces that contractClassInfo implements Adds the results to the testClasses parameter set.
getChildren() - Method in class org.xenei.junit.contract.ContractSuite
 
getClassFilter() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
Get the filter
getClassUnderTest() - Method in class org.xenei.junit.contract.info.TestInfo
Get class under test.
getClassUnderTestPackageName() - Method in class org.xenei.junit.contract.info.TestInfo
Get the package name of the cla under test..
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
Get the method that returns the Dynamic IProducer.
getDynamicInjector() - Method in class org.xenei.junit.contract.info.DynamicTestInfo
Get the method that returns the Dynamic IProducer.
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.
getInterfaceInfoCollection() - Method in class org.xenei.junit.contract.tooling.InterfaceReport
Get a collection of InterfaceInfo objects for the entire test suite.
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
Get the collection of Class objects that were included in the packages.
getProducer(Object) - Method in class org.xenei.junit.contract.info.DynamicTestInfo
Get a producer that is to be injected in to the test.
getSimpleClassUnderTestName() - Method in class org.xenei.junit.contract.info.TestInfo
Get the simple name of the class 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
Get an array of classes to skip.
getSuiteClasses() - Method in interface org.xenei.junit.contract.Dynamic
Get the set of set of classes in the test suite.
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

hasErrors() - Method in class org.xenei.junit.contract.info.TestInfo
Determine if there are errors from this TestInfo constructor.
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
Class to produce report data about the state of the contract tests.
InterfaceReport(String[], ClassPathFilter, ClassLoader) - Constructor for class org.xenei.junit.contract.tooling.InterfaceReport
Constructor.
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 TestInfo objects.
logErrors(Log) - Method in class org.xenei.junit.contract.info.TestInfoErrorRunner
Log all the errors (if any) to the provided logger.

M

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
 

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
An Runner to produce a complete error report.
TestInfoErrorRunner(Class<?>, TestInfo) - Constructor for class org.xenei.junit.contract.info.TestInfoErrorRunner
Constructor.
toString() - Method in class org.xenei.junit.contract.info.TestInfo
 
toString() - Method in class org.xenei.junit.contract.info.TestInfoErrorRunner
 

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 R S T V 
Skip navigation links

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