Skip to content

Commit

Permalink
Test uncovered boundary conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeEdgar committed Jul 11, 2020
1 parent 53c4ace commit db1de21
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,9 @@ void testX12FunctionalGroupDateVariableValidation() throws EDIStreamException, I
List<EDIReference> errorReferences = new ArrayList<>();
List<EDIStreamValidationError> errors = new ArrayList<>();

assertNull(reader.getReferenceCode()); // Null before start of input
assertNull(reader.getSchemaTypeReference()); // Null before start of input

try {
while (reader.hasNext()) {
try {
Expand Down Expand Up @@ -1252,6 +1255,9 @@ void testX12FunctionalGroupDateVariableValidation() throws EDIStreamException, I
}

assertNull(thrown);
assertNull(reader.getReferenceCode()); // Null after end of input
assertNull(reader.getSchemaTypeReference()); // Null after end of input

assertEquals(6, gsDateMinInitial);
assertEquals(8, gsDateMaxInitial);
assertEquals(6, gsDateMinVersion003040);
Expand Down

0 comments on commit db1de21

Please sign in to comment.