@Override public void run() { beforeOct.from("timestamp", instant); } });
@Override public void run() { beforeOct.from("timestamp", later); } });
@Override public void run() { oct.from("timestamp", later); } });
@Override public void run() { afterSep.from("timestamp", earlier); } });
@Override public void run() { withSpecificTimestamp.from("timestamp", later); } });
@Override public RefinableView<E> from(String name, Comparable value) { return asRefinableView().from(name, value); }
@Override public void run() { fromOctober.from("timestamp", earlier); } });
@Override public void run() { toOct.from("timestamp", later); } });
@Override public void run() { oct.from("timestamp", earlier); } });
@Override public void run() { unbounded.from("timestamp", nov11Start).to("timestamp", nov12Start).moveToTrash(); } });
@Override public void run() { unbounded.from("timestamp", nov11Start).to("timestamp", nov12Start).deleteAll(); } });
@Override public void run() { unbounded.from("timestamp", octInstant).to("timestamp", octInstant).deleteAll(); } });
@Override public void run() { unbounded.from("timestamp", oct12BadStart).to("timestamp", oct12End).deleteAll(); } });
@Override public void run() { unbounded.from("timestamp", oct12BadStart).to("timestamp", oct12End).moveToTrash(); } });
@Override public void run() { unbounded.from("timestamp", oct12Start).to("timestamp", oct12BadEnd).deleteAll(); } });
@Override public void run() { unbounded.from("timestamp", octInstant).to("timestamp", octInstant).moveToTrash(); } });
@Override public void run() { unbounded.from("timestamp", oct12Start).to("timestamp", oct12BadEnd).moveToTrash(); } });
@Test @SuppressWarnings("rawtypes") public void testReadySignalFromAfterConstraint() { Assume.assumeTrue(unbounded instanceof Signalable); final long instant = new DateTime(2013, 10, 1, 0, 0, DateTimeZone.UTC).getMillis(); final Signalable fromAfterSpecificTimestamp = (Signalable) unbounded.from("timestamp", instant); Assert.assertFalse("Should not be ready initially", fromAfterSpecificTimestamp.isReady()); fromAfterSpecificTimestamp.signalReady(); Assert.assertTrue("Should be ready after signal", fromAfterSpecificTimestamp.isReady()); }
@Test @SuppressWarnings("rawtypes") public void testReadySignalFromConstraint() { Assume.assumeTrue(unbounded instanceof Signalable); final long instant = new DateTime(2013, 10, 1, 0, 0, DateTimeZone.UTC).getMillis(); final Signalable fromSpecificTimestamp = (Signalable) unbounded.from("timestamp", instant); Assert.assertFalse("Should not be ready initially", fromSpecificTimestamp.isReady()); fromSpecificTimestamp.signalReady(); Assert.assertTrue("Should be ready after signal", fromSpecificTimestamp.isReady()); }
@Test public void testMixedConstraintViews() { assertViewUriEquivalent("id, color, and time constraints", "view:file:/tmp/test_name?color=,orange&id=exists()×tamp=[0,9)", test.with("color", "", "orange").with("id") .from("timestamp", 0L).toBefore("timestamp", 9L)); }