コード例 #1
0
 @Test
 public void testGetPreviousFeature() throws Exception {
   Lane p = mock(Lane.class);
   when(p.getID()).thenReturn(new ID("previous lane"));
   link.in = p;
   assertEquals(new ID("previous lane"), link.getPreviousFeature().getID());
 }
コード例 #2
0
 @Test
 public void testGetNextFeature() throws Exception {
   Lane n = mock(Lane.class);
   when(n.getID()).thenReturn(new ID("next lane"));
   link.out = n;
   assertEquals(new ID("next lane"), link.getNextFeature().getID());
 }