@Test public void testSetFilter() { MetadataFilterService service = new MetadataFilterService(); assertEquals(NoOpMetadataFilter.class, service.getFilter().getClass()); service.setFilter(new RegexMetadataFilter()); assertEquals(RegexMetadataFilter.class, service.getFilter().getClass()); try { service.setFilter(null); fail(); } catch (IllegalArgumentException expected) { } assertEquals(RegexMetadataFilter.class, service.getFilter().getClass()); }
public void setFilter(MetadataFilter mf) { filter = Args.notNull(mf, "filter"); }
MetadataFilterService extends MetadataServiceImpl { public void setFilter(MetadataFilter mf) { filter = Args.notNull(mf, "filter"); } }
MetadataFilterService extends MetadataServiceImpl { public void setFilter(MetadataFilter mf) { filter = Args.notNull(mf, "filter"); } MetadataFilterService(); }
MetadataFilterService extends MetadataServiceImpl { public void setFilter(MetadataFilter mf) { filter = Args.notNull(mf, "filter"); } MetadataFilterService(); @Override void doService(AdaptrisMessage msg); MetadataFilter getFilter(); void setFilter(MetadataFilter mf); MetadataFilterService withFilter(MetadataFilter mf); }
MetadataFilterService extends MetadataServiceImpl { public void setFilter(MetadataFilter mf) { filter = Args.notNull(mf, "filter"); } MetadataFilterService(); @Override void doService(AdaptrisMessage msg); MetadataFilter getFilter(); void setFilter(MetadataFilter mf); MetadataFilterService withFilter(MetadataFilter mf);  }