private boolean areIdentical(Plan one, Plan two) { return(one.id.equals(two.id) && one.title.equals(two.title) && one.duration==two.duration && one.priority==two.priority && areIdentical(one.startTime, two.startTime) && areIdentical(one.creationTime, two.creationTime) && areIdentical(one.updateTime, two.updateTime)); }
private boolean areIdentical(Plan one, Plan two) { return(one.id.equals(two.id) && one.title.equals(two.title) && one.duration==two.duration && one.priority==two.priority && areIdentical(one.startTime, two.startTime) && areIdentical(one.creationTime, two.creationTime) && areIdentical(one.updateTime, two.updateTime)); }
assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertEquals(1, foundTrips.size()); assertTrue(areIdentical(first, foundTrips.get(0))); foundTrips=null; assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertEquals(1, foundTrips.size()); assertTrue(areIdentical(updated, foundTrips.get(0))); foundTrips=null;
assertTrue(areIdentical(first, foundTrip)); assertEquals(1, store.flowAllTrips().blockingFirst().size()); assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertNotNull(foundTrip); assertTrue(areIdentical(updated, foundTrip)); assertEquals(1, store.flowAllTrips().blockingFirst().size());
assertTrue(areIdentical(first, foundTrip)); assertEquals(1, store.flowAllTrips().blockingFirst().size()); assertTrue("Should not have timed out!", latch.await(1, TimeUnit.SECONDS)); assertNotNull(foundTrip); assertTrue(areIdentical(updated, foundTrip)); assertEquals(1, store.flowAllTrips().blockingFirst().size());