@Test public void testSetSyntaxIdentifiers() throws Exception { SyntaxRoutingService service = new SyntaxRoutingService(); service.addSyntaxIdentifier(new RegexpSyntaxIdentifier(Arrays.asList(new String[] { POSTCODE_REGEXP_1, POSTCODE_REGEXP_2 }), "isPostcode")); assertEquals(1, service.getSyntaxIdentifiers().size()); try { service.addSyntaxIdentifier(null); fail(); } catch (IllegalArgumentException e) { } assertEquals(1, service.getSyntaxIdentifiers().size()); try { service.setSyntaxIdentifiers(null); fail(); } catch (IllegalArgumentException e) { } assertEquals(1, service.getSyntaxIdentifiers().size()); }
public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); }
SyntaxRoutingService extends ServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); } }
SyntaxRoutingService extends ServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); } SyntaxRoutingService(); }
SyntaxRoutingService extends ServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); } SyntaxRoutingService(); void doService(AdaptrisMessage msg); void addSyntaxIdentifier(SyntaxIdentifier ident); List<SyntaxIdentifier> getSyntaxIdentifiers(); void setSyntaxIdentifiers(List<SyntaxIdentifier> l); void setRoutingKey(String key); String getRoutingKey(); @Override void prepare(); }
SyntaxRoutingService extends ServiceImp { public void setSyntaxIdentifiers(List<SyntaxIdentifier> l) { syntaxIdentifiers = Args.notNull(l, "identifiers"); } SyntaxRoutingService(); void doService(AdaptrisMessage msg); void addSyntaxIdentifier(SyntaxIdentifier ident); List<SyntaxIdentifier> getSyntaxIdentifiers(); void setSyntaxIdentifiers(List<SyntaxIdentifier> l); void setRoutingKey(String key); String getRoutingKey(); @Override void prepare();  }