@Test public void flights() { assertEquals(0, store.selectAllTrips().size()); final Trip trip=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(trip.id); assertNotEquals(0, trip.id.length()); store.insert(trip); assertTrip(store, trip); final Flight first= new Flight("Northeast Airlines", 185, Priority.HIGH, new Date(), "PHL", "MCO", "NEA", "1734", "26B", trip.id); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertFlight(store, first); store.delete(trip); assertEquals(0, store.findFlightsForTrip(trip.id).size()); }
@Test public void flights() { assertEquals(0, store.selectAllTrips().size()); final Trip trip=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(trip.id); assertNotEquals(0, trip.id.length()); store.insert(trip); assertTrip(store, trip); final Flight first= new Flight("Northeast Airlines", 185, Priority.HIGH, new Date(), "PHL", "MCO", "NEA", "1734", "26B", trip.id); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertFlight(store, first); store.delete(trip); assertEquals(0, store.findFlightsForTrip(trip.id).size()); }
@Test public void flights() { assertEquals(0, store.selectAllTrips().size()); final Trip trip=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(trip.id); assertNotEquals(0, trip.id.length()); store.insert(trip); assertTrip(store, trip); final Flight first= new Flight("Northeast Airlines", 185, Priority.HIGH, new Date(), "PHL", "MCO", "NEA", "1734", "26B", trip.id); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertFlight(store, first); store.delete(trip); assertEquals(0, store.findFlightsForTrip(trip.id).size()); }
@Test public void lodging() { assertEquals(0, store.selectAllTrips().size()); final Trip trip=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(trip.id); assertNotEquals(0, trip.id.length()); store.insert(trip); assertTrip(store, trip); final Lodging first= new Lodging("Hotel Von", 2880, Priority.MEDIUM, new Date(), "1313 Mockingbird Lane", trip.id); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertLodging(store, first); store.delete(trip); assertEquals(0, store.findLodgingsForTrip(trip.id).size()); }
@Test public void lodging() { assertEquals(0, store.selectAllTrips().size()); final Trip trip=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(trip.id); assertNotEquals(0, trip.id.length()); store.insert(trip); assertTrip(store, trip); final Lodging first= new Lodging("Hotel Von", 2880, Priority.MEDIUM, new Date(), "1313 Mockingbird Lane", trip.id); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertLodging(store, first); store.delete(trip); assertEquals(0, store.findLodgingsForTrip(trip.id).size()); }
@Test public void lodging() { assertEquals(0, store.selectAllTrips().size()); final Trip trip=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(trip.id); assertNotEquals(0, trip.id.length()); store.insert(trip); assertTrip(store, trip); final Lodging first= new Lodging("Hotel Von", 2880, Priority.MEDIUM, new Date(), "1313 Mockingbird Lane", trip.id); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertLodging(store, first); store.delete(trip); assertEquals(0, store.findLodgingsForTrip(trip.id).size()); }
@Test public void basics() { assertEquals(0, store.selectAllTrips().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAllTrips().size()); }
@Test public void basics() { assertEquals(0, store.selectAllTrips().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAllTrips().size()); }
@Test public void basics() { assertEquals(0, store.selectAllTrips().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAllTrips().size()); }
@Test public void basics() { assertEquals(0, store.selectAll().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAll().size()); }
@Test public void basics() { assertEquals(0, store.selectAllTrips().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAllTrips().size()); }
@Test public void basics() { assertEquals(0, store.selectAllTrips().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAllTrips().size()); }
@Test public void basics() { assertEquals(0, store.selectAllTrips().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAllTrips().size()); }
@Test public void basics() { assertEquals(0, store.selectAll().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAll().size()); }
@Test public void basics() { assertEquals(0, store.singleAllTrips().blockingGet().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.singleAllTrips().blockingGet().size()); }
@Test public void basics() { assertEquals(0, store.singleAllTrips().blockingGet().size()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.singleAllTrips().blockingGet().size()); }
@Test public void basics() { assertEquals(0, store.selectAll().size()); final Trip first=new Trip("Foo", 2880); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated=new Trip(first.id, "Foo!!!", 1440); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAll().size()); }
@Test public void basics() { assertEquals(0, store.selectAll().size()); final Trip first=new Trip("Foo", 2880); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated=new Trip(first.id, "Foo!!!", 1440); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.selectAll().size()); }
@Test public void basics() { assertEquals(0, store.maybeAllTrips().blockingGet().size()); assertNull(store.maybeTripById("this does not exist").blockingGet()); final Trip first=new Trip("Foo", 2880, Priority.LOW, new Date()); assertNotNull(first.id); assertNotEquals(0, first.id.length()); store.insert(first); assertTrip(store, first); final Trip updated= new Trip(first.id, "Foo!!!", 1440, Priority.MEDIUM, first.startTime, first.creationTime, first.updateTime); store.update(updated); assertTrip(store, updated); store.delete(updated); assertEquals(0, store.maybeAllTrips().blockingGet().size()); assertNull(store.maybeTripById("this does not exist").blockingGet()); }