Skip to content

Commit

Permalink
Add test for empty DevelopmentSystemId
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusholl committed Aug 2, 2018
1 parent f8bb4f0 commit 9627a3d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ public void testGetChangeTransportsOnClosedClient() throws Exception{
examinee.getChangeTransports("xx");
}

@Test
public void testGetChangeTransportWithEmptyDevelopmentSystemId() throws Exception{
Set<TransportDescriptor> transports = new HashSet<TransportDescriptor>();
transports.add(TransportDescriptor.create("L21K90002N", "", false));
setMock(examinee, setupMock(null, transports));
List<Transport> t = examinee.getChangeTransports("L21K90002N");
assertThat(((CMODataTransport)t.get(0)).getDevelopmentSystemID(), is(equalTo("")));
}

private ODataClient setupMock() throws Exception {
return setupMock(null);
}
Expand Down

0 comments on commit 9627a3d

Please sign in to comment.