@Test public void testServiceInclude() throws Exception { AdaptrisMessage msg = createMessage(); MetadataFilterService service = new MetadataFilterService(); RegexMetadataFilter filter = new RegexMetadataFilter(); filter.addIncludePattern(REG_EXP); service.setFilter(filter); execute(service, msg); assertFalse(msg.containsKey(JMS_MESSAGE_ID)); assertEquals(DEF_VALUE, msg.getMetadataValue(JMS_KEY_1)); assertEquals(DEF_VALUE, msg.getMetadataValue(JMS_KEY_2)); assertEquals(DEF_VALUE, msg.getMetadataValue(JMS_KEY_3)); }
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);  }