public class ContractTestMap extends Object
| Constructor and Description |
|---|
ContractTestMap()
Constructor
|
ContractTestMap(org.xenei.classpathutils.ClassPathFilter ignoreFilter)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(TestInfo info)
Add a TestInfo to the map.
|
Set<Class<?>> |
getAllInterfaces(Class<?> clazz)
Get all interfaces the class implements.
|
Set<TestInfo> |
getAnnotatedClasses(Set<TestInfo> testClasses,
TestInfo contractClassInfo)
Find all the test classes that test the interfaces that contractClassInfo
implements
Adds the results to the testClasses parameter set.
|
Set<TestInfo> |
getInfoByInterfaceClass(Class<?> contract)
Get a TestInfo for a interface under test.
|
TestInfo |
getInfoByTestClass(Class<?> testClass)
Get a TestInfo for the test class.
|
Collection<TestInfo> |
listTestInfo()
A list of all TestInfo objects.
|
public ContractTestMap()
public ContractTestMap(org.xenei.classpathutils.ClassPathFilter ignoreFilter)
ignoreFilter - A filter describing things to ignorepublic void add(TestInfo info)
info - the info to addpublic TestInfo getInfoByTestClass(Class<?> testClass)
testClass - The test class.public Set<TestInfo> getInfoByInterfaceClass(Class<?> contract)
contract - The class (interface) under test.public Set<Class<?>> getAllInterfaces(Class<?> clazz)
clazz - The class to checkpublic Set<TestInfo> getAnnotatedClasses(Set<TestInfo> testClasses, TestInfo contractClassInfo)
testClasses - A set of testInfo to add the result to.contractClassInfo - A TestInfo object that represents the test class to search
for.public Collection<TestInfo> listTestInfo()
Copyright © 2013-2017 XENEI.com. All Rights Reserved.