49505152535455565758
} @Before public void before() { event = new MockRewrite(); context = new MockEvaluationContext(); context.put(ParameterStore.class, new DefaultParameterStore()); context.put(ParameterValueStore.class, new DefaultParameterValueStore()); }
118119120121122123124
} @Test public void testDoesNotMatchNonHttpRewrites() { Assert.assertFalse(Query.matches(".*").evaluate(new MockRewrite(), context)); }
99100101102103104105
} @Test public void testDoesNotMatchNonHttpRewrites() { Assert.assertFalse(Path.matches("/blah").evaluate(new MockRewrite(), new MockEvaluationContext())); }
106107108109110111112
39404142434445
{ return time != null; } }); Assert.assertTrue(jodaTime.evaluate(new MockRewrite(), new MockEvaluationContext())); }
53545556575859
{ return false; } }); Assert.assertFalse(jodaTime.evaluate(new MockRewrite(), new MockEvaluationContext())); }
145146147148149150151
Header header = Header.exists("Accept-Charset"); ParameterStore parameters = new DefaultParameterStore(); ParameterUtils.initialize(parameters, header); Assert.assertFalse(header.evaluate(new MockRewrite(), new MockEvaluationContext())); }
116117118119120121122
} @Test public void testDoesNotMatchNonHttpRewrites() { Assert.assertFalse(URL.matches("/blah").evaluate(new MockRewrite(), new MockEvaluationContext())); }
196197198199200201202
} @Test public void testDoesNotMatchNonHttpRewrites() { Assert.assertFalse(RequestParameter.exists("foo").evaluate(new MockRewrite(), new MockEvaluationContext())); }