@Test public void testTest() throws Exception { ExperimentFilter experimentFilter = new ExperimentFilter(); HashMap<String, Boolean> testCases = new HashMap<>(); testCases.put("MyTest", true); testCases.put("application_name=App", true); testCases.put("application_name_exact=App", false); testCases.put("application_name_exact=MyTestApplication", true); testCases.put("Test,created_by=Creator", true); testCases.put("abcdefg,created_by=Creator", false); testCases.put("creation_time=13:42", true); testCases.put("start_time=Feb 14", true); testCases.put("end_time=15:59:58", false); testCases.put("modification_time=2015", false); testCases.put("state=term", false); testCases.put("state=run", true); testCases.put("state_exact=notterminated", true); testCases.put("state_exact=non-terminated", false); testCases.put("state_exact=draft", false); testCases.put("tags=tag2", true); testCases.put("tags=tag42", false); testCases.put("tags=foo;tag", true); for (Map.Entry<String, Boolean> testCase : testCases.entrySet()) { experimentFilter.replaceFilter(testCase.getKey(), "+0000"); Assert.assertEquals("test case " + testCase.getKey() + " failed.", testCase.getValue(), experimentFilter.test(experiment)); } }
@Override public boolean test(Experiment experiment) { return super.test(experiment, Property.class); }
ExperimentFilter extends PaginationFilter<Experiment> { @Override public boolean test(Experiment experiment) { return super.test(experiment, Property.class); } }
ExperimentFilter extends PaginationFilter<Experiment> { @Override public boolean test(Experiment experiment) { return super.test(experiment, Property.class); } ExperimentFilter(); }
ExperimentFilter extends PaginationFilter<Experiment> { @Override public boolean test(Experiment experiment) { return super.test(experiment, Property.class); } ExperimentFilter(); @Override boolean test(Experiment experiment); }
ExperimentFilter extends PaginationFilter<Experiment> { @Override public boolean test(Experiment experiment) { return super.test(experiment, Property.class); } ExperimentFilter(); @Override boolean test(Experiment experiment);  }