|
|
@@ -18,6 +18,7 @@ import scot.carricksoftware.grants.constants.ApplicationConstants;
|
|
|
import scot.carricksoftware.grants.constants.ValidationConstants;
|
|
|
|
|
|
import static org.mockito.Mockito.verify;
|
|
|
+import static org.mockito.Mockito.verifyNoInteractions;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomCensusValues.GetRandomCensus;
|
|
|
import static scot.carricksoftware.grants.GenerateRandomPeopleValues.GetRandomPerson;
|
|
|
|
|
|
@@ -52,8 +53,8 @@ class CensusEntryCommandValidatorChildrenBornAliveTest {
|
|
|
censusEntryCommand.setChildrenBornAlive("0");
|
|
|
censusEntryCommand.setPerson(GetRandomPerson());
|
|
|
validator.validate(censusEntryCommand, bindingResultMock);
|
|
|
- verify(bindingResultMock).rejectValue("childrenBornAlive", ApplicationConstants.EMPTY_STRING, null, ValidationConstants.FIELD_NOT_NEGATIVE_INTEGER);
|
|
|
- }
|
|
|
+ verifyNoInteractions(bindingResultMock);
|
|
|
+ }
|
|
|
|
|
|
@Test
|
|
|
public void NotIntegerTest() {
|