}).when(store).update(ArgumentMatchers.any());
}).when(store).update(Matchers.<Trip>anyVararg());
@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()); }
store.update(updated); assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertEquals(1, foundTrips.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()); }
first.creationTime, first.updateTime); store.update(updated); assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertNotNull(foundTrip);
first.creationTime, first.updateTime); store.update(updated); assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertNotNull(foundTrip);
@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); final Trip missing=store.maybeTripById("asefasdfasd").blockingGet(); assertNull(missing); store.delete(updated); assertEquals(0, store.maybeAllTrips().blockingGet().size()); assertNull(store.maybeTripById("this does not exist").blockingGet()); }