Package de.cuioss.test.jsf.validator
Class TestItems<T>
- java.lang.Object
-
- de.cuioss.test.jsf.validator.TestItems<T>
-
- Type Parameters:
T- type of Test Item value
public class TestItems<T> extends Object
TestData Store for Test Items which will be used byAbstractValidatorTest-
Class is prepared to be used as Fluent Interface
-
-
Constructor Summary
Constructors Constructor Description TestItems()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestItems<T>addInvalid(T value)Add to TestData Store a Test item which must fail withValidatorExceptionTestItems<T>addInvalidWithMessage(T value, String message)Add to TestData Store a Test item which must fail withValidatorExceptionTestItems<T>addValid(T value)Add to TestData Store a Test item which must fail withValidatorException
-
-
-
Constructor Detail
-
TestItems
public TestItems()
-
-
Method Detail
-
addInvalid
public TestItems<T> addInvalid(T value)
Add to TestData Store a Test item which must fail withValidatorException- Parameters:
value- T invalid value which should cause aValidatorException- Returns:
- TestItems reference to this object
-
addInvalidWithMessage
public TestItems<T> addInvalidWithMessage(T value, String message)
Add to TestData Store a Test item which must fail withValidatorException- Parameters:
value- T invalid value which should cause aValidatorExceptionmessage- which should be set within theValidatorException- Returns:
- TestItems reference to this object
-
addValid
public TestItems<T> addValid(T value)
Add to TestData Store a Test item which must fail withValidatorException- Parameters:
value- T invalid value which should cause aValidatorException- Returns:
- TestItems reference to this object
-
-