Class AbstractAllFilterByTest<T extends net.avcompris.commons.query.Filtering<U>,U extends net.avcompris.commons.query.Filtering.Field>
- java.lang.Object
-
- net.avcompris.commons.query.tests.AbstractAllFilterByTest<T,U>
-
public abstract class AbstractAllFilterByTest<T extends net.avcompris.commons.query.Filtering<U>,U extends net.avcompris.commons.query.Filtering.Field> extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAllFilterByTest(java.lang.Class<? extends net.avcompris.commons.query.Filterings<T,U>> filteringsClass, java.lang.Class<?> dtoClass)
-
Method Summary
Modifier and Type Method Description protected abstract java.lang.Object
newValueFor(U field)
protected T
parse(java.lang.String expression)
protected java.lang.Object
randomValueFor(U field)
protected static <U extends net.avcompris.commons.query.Filtering.Field>
java.util.stream.Stream<org.junit.jupiter.params.provider.Arguments>testCases(U[] values)
void
testMatch(java.lang.String expression, U field)
void
testParse(java.lang.String expression, U field)
-
-
-
Method Detail
-
testParse
@ParameterizedTest(name="{0}") @MethodSource("testCases") public final void testParse(java.lang.String expression, U field) throws java.lang.Exception
- Throws:
java.lang.Exception
-
testMatch
@ParameterizedTest(name="{0}") @MethodSource("testCases") public final void testMatch(java.lang.String expression, U field) throws java.lang.Exception
- Throws:
java.lang.Exception
-
newValueFor
protected abstract java.lang.Object newValueFor(U field)
-
randomValueFor
protected final java.lang.Object randomValueFor(U field)
-
parse
protected final T parse(java.lang.String expression) throws net.avcompris.commons.query.FilterSyntaxException
- Throws:
net.avcompris.commons.query.FilterSyntaxException
-
testCases
protected static <U extends net.avcompris.commons.query.Filtering.Field> java.util.stream.Stream<org.junit.jupiter.params.provider.Arguments> testCases(U[] values) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-