public class ContractTestMap extends Object
| Constructor and Description |
|---|
ContractTestMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(TestInfo info)
Add a TestInfo to the map.
|
Set<TestInfo> |
getAnnotatedClasses(Set<TestInfo> testClasses,
TestInfo contractClassInfo)
Find the test classes for the specific contract class.
|
Set<TestInfo> |
getAnnotatedClasses(TestInfo contractClassInfo)
Find the test classes for the specific contract class.
|
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.
|
static ContractTestMap |
populateInstance()
Populate and return a ContractTestMap with all the contract tests on the
class path.
|
static ContractTestMap |
populateInstance(ClassFilter packageFilter,
ClassFilter ignoreFilter)
Populate an instance of ContractTestMap based on the package filter and
the class filter.
|
static ContractTestMap |
populateInstance(ClassLoader classLoader)
Populate and return a ContractTestMap using the specified class loader.
|
static ContractTestMap |
populateInstance(ClassLoader classLoader,
ClassFilter filter)
Create a ContractTestMap with using the specified class loader.
|
static ContractTestMap |
populateInstance(ClassLoader classLoader,
ClassFilter packageFilter,
ClassFilter ignoreFilter)
Create an instance of ContractTestMap using the specified class loader.
|
static ContractTestMap |
populateInstance(ClassLoader classLoader,
String[] packages)
Create an instance of ContractTestMap using the specified class loader.
|
public static ContractTestMap populateInstance()
public static ContractTestMap populateInstance(ClassFilter packageFilter, ClassFilter ignoreFilter)
packageFilter - The ClassFilter object to filter package names by.ignoreFilter - The ClassFilter object to specify classes to ignore.public static ContractTestMap populateInstance(ClassLoader classLoader)
classLoader - The class loader to load classes from.public static ContractTestMap populateInstance(ClassLoader classLoader, ClassFilter packageFilter, ClassFilter ignoreFilter)
classLoader - The class loader to usepackageFilter - The ClassFilter object to filter package names by.ignoreFilter - The ClassFilter object to specify classes to ignore.public static ContractTestMap populateInstance(ClassLoader classLoader, String[] packages)
classLoader - The class loader to use.packages - A list of package names to reportpublic static ContractTestMap populateInstance(ClassLoader classLoader, ClassFilter filter)
classLoader - The class loader to use.filter - The Class filter to filter the classes with.public 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<TestInfo> getAnnotatedClasses(TestInfo contractClassInfo)
contractClassInfo - A TestInfo object that represents the test class to search
for.public 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-2016 XENEI.com. All Rights Reserved.