Package org.nuiton.validator
Class AbstractValidatorDetectorTest
- java.lang.Object
-
- org.nuiton.validator.AbstractValidatorDetectorTest
-
- Direct Known Subclasses:
ModelValidatorDetectorTestImpl
public abstract class AbstractValidatorDetectorTest extends Object
Abstract test to detects and test your validators.- Since:
- 2.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
-
Field Summary
Fields Modifier and Type Field Description protected NuitonValidatorProvider
provider
protected String
providerName
protected File
rootDirectory
-
Constructor Summary
Constructors Constructor Description AbstractValidatorDetectorTest(String providerName)
-
Method Summary
-
-
-
Field Detail
-
providerName
protected final String providerName
-
rootDirectory
protected File rootDirectory
-
provider
protected NuitonValidatorProvider provider
-
-
Constructor Detail
-
AbstractValidatorDetectorTest
public AbstractValidatorDetectorTest(String providerName)
-
-
Method Detail
-
detectValidators
protected SortedSet<NuitonValidator<?>> detectValidators(Class<?>... types)
-
detectValidators
protected SortedSet<NuitonValidator<?>> detectValidators(Pattern context, Class<?>... types)
-
detectValidators
protected SortedSet<NuitonValidator<?>> detectValidators(Pattern context, NuitonValidatorScope[] scopes, Class<?>... types)
-
assertValidatorModel
public void assertValidatorModel(NuitonValidator<?> validator, String expectedContext, Class<?> expectedType, NuitonValidatorScope... expectedScopes)
-
assertValidatorEffectiveScopes
public void assertValidatorEffectiveScopes(NuitonValidator<?> validator, NuitonValidatorScope... expectedScopes)
-
assertValidatorEffectiveFields
public void assertValidatorEffectiveFields(NuitonValidator<?> validator, String... expectedFields)
-
assertValidatorEffectiveFields
public void assertValidatorEffectiveFields(NuitonValidator<?> validator, NuitonValidatorScope scope, String... expectedFields)
-
assertValidatorSetWithMultiContextName
public void assertValidatorSetWithMultiContextName(SortedSet<NuitonValidator<?>> result, Object... contextThenClass)
-
assertValidatorSetWithSameContextName
public void assertValidatorSetWithSameContextName(SortedSet<NuitonValidator<?>> result, String context, Class<?>... contextThenClass)
-
-