Browse Source

search flight as an admin

feature-pr-Admin
Sona Markosyan 3 years ago
parent
commit
90078e129a
  1. 7
      src/test/java/hs/fulda/de/ci/exam/project/AdminTest.java

7
src/test/java/hs/fulda/de/ci/exam/project/AdminTest.java

@ -103,6 +103,11 @@ public class AdminTest {
});
}
@Test
public void test_searchFlight(){
when(flightRepository.findFlightByFlightNumber(any(String.class))).thenReturn(flight1.toString());
assertNotNull(admin.searchFlights("1"));
assertEquals(admin.searchFlights("1"), flight1.toString());
}
}
Loading…
Cancel
Save