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

$

$(Object...) - Static method in class com.tngtech.java.junit.dataprovider.DataProviders
Helper method to create an Object array containing all the given arguments, e.g.
$$(Object[]...) - Static method in class com.tngtech.java.junit.dataprovider.DataProviders
Helper method to create an array of the given Object arrays, e.g.

A

AbstractObjectConverter<V> - Class in com.tngtech.java.junit.dataprovider.internal.convert
 
AbstractObjectConverter() - Constructor for class com.tngtech.java.junit.dataprovider.internal.convert.AbstractObjectConverter
 
all() - Static method in class com.tngtech.java.junit.dataprovider.Placeholders
Retrieve all BasePlaceholder to handle DataProvider.format().

B

BasePlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
Base class for all placeholder which are used to format the test method name.
BasePlaceholder(String) - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
 

C

canConvert(Type) - Method in class com.tngtech.java.junit.dataprovider.internal.DataConverter
Returns true iif this DataConverter can convert the given type.
CanonicalClassNamePlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
 
CanonicalClassNamePlaceholder() - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.CanonicalClassNamePlaceholder
 
checkArgument(boolean, String) - Static method in class com.tngtech.java.junit.dataprovider.common.Preconditions
 
checkArgument(boolean, String, Object...) - Static method in class com.tngtech.java.junit.dataprovider.common.Preconditions
 
checkArgumentsAndParameterCount(int, int, boolean, int) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 
checkIfArgumentsMatchParameterTypes(Object[], Class<?>[]) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.AbstractObjectConverter
Checks if the types of the given arguments matches the given test methods parameterTypes and throws an Error if not.
checkNotNull(T, String) - Static method in class com.tngtech.java.junit.dataprovider.common.Preconditions
 
collectInitializationErrors(List<Throwable>) - Method in class com.tngtech.java.junit.dataprovider.DataProviderRunner
 
com.tngtech.java.junit.dataprovider - package com.tngtech.java.junit.dataprovider
 
com.tngtech.java.junit.dataprovider.common - package com.tngtech.java.junit.dataprovider.common
 
com.tngtech.java.junit.dataprovider.internal - package com.tngtech.java.junit.dataprovider.internal
 
com.tngtech.java.junit.dataprovider.internal.convert - package com.tngtech.java.junit.dataprovider.internal.convert
 
com.tngtech.java.junit.dataprovider.internal.placeholder - package com.tngtech.java.junit.dataprovider.internal.placeholder
 
COMMA - Static variable in annotation type com.tngtech.java.junit.dataprovider.DataProvider
Comma delimiter to split up parameters for dataproviders using the DataProvider.value()s String representation.
CompleteMethodSignaturePlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
 
CompleteMethodSignaturePlaceholder() - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.CompleteMethodSignaturePlaceholder
 
computeTestMethods() - Method in class com.tngtech.java.junit.dataprovider.DataProviderRunner
Generates the exploded list of methods that run tests.
convert(V, boolean, Class<?>[]) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.AbstractObjectConverter
Converts the given data to its corresponding arguments using the provided information.
convert(Object[], boolean, Class<?>[]) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.ObjectArrayConverter
Converts the given data to its corresponding arguments using the provided information.
convert(Object, boolean, Class<?>[]) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.SingleArgConverter
Converts the given data to its corresponding arguments using the provided information.
convert(String, boolean, Class<?>[], DataProvider, int) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
Converts the given data to its corresponding arguments using the given parameterTypes and other provided information.
convert(Object, boolean, Class<?>[], DataProvider) - Method in class com.tngtech.java.junit.dataprovider.internal.DataConverter
Converts the given Object to a List of Object[] with Classes correspond to given parameterTypes.
convertPrimaryOrWrapper(String, Class<?>) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 
convertToEnumValue(String, Class<Enum>, boolean) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 
convertToLong(String) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 
crossProduct(Object[][], Object[][]) - Static method in class com.tngtech.java.junit.dataprovider.DataProviders
Creates a dataprovider test for each combination of elements of the two provided data providers.
customConvertValue(String, Class<?>, DataProvider) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
This method purely exists as potential extension point by overriding it.

D

dataConverter - Variable in class com.tngtech.java.junit.dataprovider.DataProviderRunner
The DataConverter to be used to convert from supported return types of any dataprovider to List <Object[]> such that data can be further handled.
DataConverter - Class in com.tngtech.java.junit.dataprovider.internal
Internal class to convert some data to its corresponding parameters.
DataConverter() - Constructor for class com.tngtech.java.junit.dataprovider.internal.DataConverter
 
DataProvider - Annotation Type in com.tngtech.java.junit.dataprovider
Mark a method as a dataprovider used by a test method or use it directly at the test method and provide data via DataProvider.value() attribute.
DataProviderFilter - Class in com.tngtech.java.junit.dataprovider
This custom Filter filters test methods or even single dataprovider rows of a test class which is run by DataProviderRunner.
DataProviderFilter(Filter) - Constructor for class com.tngtech.java.junit.dataprovider.DataProviderFilter
Creates a new DataProviderFilter using the textual Filter.describe() of supplied Filter to determine if a test method should run or not.
DataProviderFrameworkMethod - Class in com.tngtech.java.junit.dataprovider
A special framework method that allows the usage of parameters for the test method.
DataProviderFrameworkMethod(Method, int, Object[], String) - Constructor for class com.tngtech.java.junit.dataprovider.DataProviderFrameworkMethod
Create a FrameworkMethod extended with special attributes for using this test with a dataprovider.
DataProviderMethodResolver - Interface in com.tngtech.java.junit.dataprovider
Interface to be used to implement a dataprovider method resolver based on the test method.
DataProviderRunner - Class in com.tngtech.java.junit.dataprovider
A custom runner for JUnit that allows the usage of TestNG-like dataproviders.
DataProviderRunner(Class<?>) - Constructor for class com.tngtech.java.junit.dataprovider.DataProviderRunner
Creates a DataProviderRunner to run supplied clazz.
DataProviders - Class in com.tngtech.java.junit.dataprovider
 
DataProviders() - Constructor for class com.tngtech.java.junit.dataprovider.DataProviders
 
DEFAULT_FORMAT - Static variable in annotation type com.tngtech.java.junit.dataprovider.DataProvider
Default format string containing test method name followed by an index and all parameters within square brackets.
DEFAULT_VALUE - Static variable in annotation type com.tngtech.java.junit.dataprovider.UseDataProvider
This is the default value for UseDataProvider.value().
DefaultDataProviderMethodResolver - Class in com.tngtech.java.junit.dataprovider.internal
Default implementation to resolve the dataprovider method for a test method using UseDataProvider annotation.
DefaultDataProviderMethodResolver() - Constructor for class com.tngtech.java.junit.dataprovider.internal.DefaultDataProviderMethodResolver
 
describe() - Method in class com.tngtech.java.junit.dataprovider.DataProviderFilter
 

E

equals(Object) - Method in class com.tngtech.java.junit.dataprovider.DataProviderFrameworkMethod
 

F

filter(Filter) - Method in class com.tngtech.java.junit.dataprovider.DataProviderRunner
findDataProviderLocations(FrameworkMethod, Class<?>[]) - Method in class com.tngtech.java.junit.dataprovider.internal.DefaultDataProviderMethodResolver
 
findDataProviderMethod(TestClass, String, String) - Method in class com.tngtech.java.junit.dataprovider.internal.DefaultDataProviderMethodResolver
 
findDataProviderMethods(List<TestClass>, String, String) - Method in class com.tngtech.java.junit.dataprovider.internal.DefaultDataProviderMethodResolver
 
format(Object) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.ParameterPlaceholder
 
formatAll(Object[]) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.ParameterPlaceholder
Formats the given parameters by retrieving it's String representation and separate it by comma (= ,).

G

generateExplodedTestMethodsFor(FrameworkMethod, FrameworkMethod) - Method in class com.tngtech.java.junit.dataprovider.internal.TestGenerator
Generates the exploded list of test methods for the given testMethod.
getName() - Method in class com.tngtech.java.junit.dataprovider.DataProviderFrameworkMethod
 
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
Generate and returns the replacement for the found and given placeholder.
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.CanonicalClassNamePlaceholder
 
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.CompleteMethodSignaturePlaceholder
 
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.IndexPlaceholder
 
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.ParameterPlaceholder
 
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.SimpleClassNamePlaceholder
 
getReplacementFor(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.SimpleMethodNamePlaceholder
 

H

hashCode() - Method in class com.tngtech.java.junit.dataprovider.DataProviderFrameworkMethod
 

I

idx - Variable in class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
 
IndexPlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
 
IndexPlaceholder() - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.IndexPlaceholder
 
initializeHelpers() - Method in class com.tngtech.java.junit.dataprovider.DataProviderRunner
Initialize and/or override DataConverter, TestGenerator and/or TestValidator helper classes.
invokeExplosively(Object, Object...) - Method in class com.tngtech.java.junit.dataprovider.DataProviderFrameworkMethod
 

M

method - Variable in class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
 

N

NULL - Static variable in annotation type com.tngtech.java.junit.dataprovider.DataProvider
null-String value to be converted to null if DataProvider.convertNulls() is true.

O

OBJECT_NO_CONVERSION - Static variable in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 
ObjectArrayConverter - Class in com.tngtech.java.junit.dataprovider.internal.convert
 
ObjectArrayConverter() - Constructor for class com.tngtech.java.junit.dataprovider.internal.convert.ObjectArrayConverter
 

P

ParameterPlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
This placeholder format the parameters of a dataprovider test as comma-separated String according to the given index or range subscript (see DataProvider.format().
ParameterPlaceholder() - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.ParameterPlaceholder
 
parameters - Variable in class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
 
Placeholders - Class in com.tngtech.java.junit.dataprovider
Use this class to manipulate the generation/formatting of test method names.
Placeholders() - Constructor for class com.tngtech.java.junit.dataprovider.Placeholders
 
Preconditions - Class in com.tngtech.java.junit.dataprovider.common
 
Preconditions() - Constructor for class com.tngtech.java.junit.dataprovider.common.Preconditions
 
process(String) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
Executes this placeholder for the given String by searching all occurrences of the regular expression supplied in the constructor and replaces them with the retrieved replacement from BasePlaceholder.getReplacementFor(String).

R

reset() - Static method in class com.tngtech.java.junit.dataprovider.Placeholders
Resets all changes to the list of all BasePlaceholder such that is contains the default placeholders again.
resolve(FrameworkMethod, UseDataProvider) - Method in interface com.tngtech.java.junit.dataprovider.DataProviderMethodResolver
Returns the dataprovider methods that belongs to the given test method or an empty List if no such dataprovider method could be found.
resolve(FrameworkMethod, UseDataProvider) - Method in class com.tngtech.java.junit.dataprovider.internal.DefaultDataProviderMethodResolver
Returns the dataprovider methods that belongs to the given test method or an empty List if no such dataprovider method could be found.

S

setContext(Method, int, Object[]) - Method in class com.tngtech.java.junit.dataprovider.internal.placeholder.BasePlaceholder
Sets the given arguments as context for processing or replacement generation, respectively.
setObjectArrayConverter(ObjectArrayConverter) - Method in class com.tngtech.java.junit.dataprovider.internal.DataConverter
 
setSingleArgConverter(SingleArgConverter) - Method in class com.tngtech.java.junit.dataprovider.internal.DataConverter
 
setStringConverter(StringConverter) - Method in class com.tngtech.java.junit.dataprovider.internal.DataConverter
 
shouldRun(Description) - Method in class com.tngtech.java.junit.dataprovider.DataProviderFilter
 
SimpleClassNamePlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
 
SimpleClassNamePlaceholder() - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.SimpleClassNamePlaceholder
 
SimpleMethodNamePlaceholder - Class in com.tngtech.java.junit.dataprovider.internal.placeholder
 
SimpleMethodNamePlaceholder() - Constructor for class com.tngtech.java.junit.dataprovider.internal.placeholder.SimpleMethodNamePlaceholder
 
SingleArgConverter - Class in com.tngtech.java.junit.dataprovider.internal.convert
 
SingleArgConverter() - Constructor for class com.tngtech.java.junit.dataprovider.internal.convert.SingleArgConverter
 
splitBy(String, String) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 
StringConverter - Class in com.tngtech.java.junit.dataprovider.internal.convert
 
StringConverter() - Constructor for class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 

T

testForEach(Object...) - Static method in class com.tngtech.java.junit.dataprovider.DataProviders
Creates a dataprovider test for each argument.
testForEach(Iterable<T>) - Static method in class com.tngtech.java.junit.dataprovider.DataProviders
Deprecated.
since 1.12.0 Iterable<?> can directly be returned from any dataprovider method
testForEach(Class<E>) - Static method in class com.tngtech.java.junit.dataprovider.DataProviders
Creates a dataprovider test for each value in the given Enum class.
testGenerator - Variable in class com.tngtech.java.junit.dataprovider.DataProviderRunner
The TestGenerator to be used to generate all framework methods to be executed as test (enhanced by data providers data if desired).
TestGenerator - Class in com.tngtech.java.junit.dataprovider.internal
 
TestGenerator(DataConverter) - Constructor for class com.tngtech.java.junit.dataprovider.internal.TestGenerator
 
testValidator - Variable in class com.tngtech.java.junit.dataprovider.DataProviderRunner
The TestValidator to be used to validate all test methods to be executed as test and all dataprovider to be used to explode tests.
TestValidator - Class in com.tngtech.java.junit.dataprovider.internal
 
TestValidator(DataConverter) - Constructor for class com.tngtech.java.junit.dataprovider.internal.TestValidator
 
tryConvertUsingSingleStringParamConstructor(String, Class<?>) - Method in class com.tngtech.java.junit.dataprovider.internal.convert.StringConverter
 

U

UseDataProvider - Annotation Type in com.tngtech.java.junit.dataprovider
Annotate a test method for using it with a dataprovider.
UseDataProvider.ResolveStrategy - Enum in com.tngtech.java.junit.dataprovider
 

V

validateDataProviderMethod(FrameworkMethod, DataProvider, List<Throwable>) - Method in class com.tngtech.java.junit.dataprovider.internal.TestValidator
Checks if the given dataProviderMethod is a valid dataprovider and adds a Exception to errors if it is not public, is not static, takes parameters, or does return a convertible type, see DataConverter.canConvert(java.lang.reflect.Type)
validateInstanceMethods(List<Throwable>) - Method in class com.tngtech.java.junit.dataprovider.DataProviderRunner
Deprecated.
validateTestMethod(FrameworkMethod, List<Throwable>) - Method in class com.tngtech.java.junit.dataprovider.internal.TestValidator
Checks if the given testMethod is a valid test method depending on the dataprovider relevant annotation @DataProvider and @UseDataProvider.
validateTestMethods(List<Throwable>) - Method in class com.tngtech.java.junit.dataprovider.DataProviderRunner
valueOf(String) - Static method in enum com.tngtech.java.junit.dataprovider.UseDataProvider.ResolveStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.tngtech.java.junit.dataprovider.UseDataProvider.ResolveStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
$ A B C D E F G H I M N O P R S T U V 
Skip navigation links