@Test public void testSetRoutingKey() throws Exception { SyntaxRoutingService service = new SyntaxRoutingService(); try { LifecycleHelper.init(service); fail("Should not init if routingKey == null"); } catch (CoreException e) { } service.setRoutingKey(ROUTING_KEY); assertEquals(ROUTING_KEY, service.getRoutingKey()); try { service.setRoutingKey(null); fail(); } catch (IllegalArgumentException e) { } assertEquals(ROUTING_KEY, service.getRoutingKey()); try { service.setRoutingKey(""); fail(); } catch (IllegalArgumentException e) { } assertEquals(ROUTING_KEY, service.getRoutingKey()); LifecycleHelper.init(service); LifecycleHelper.close(service); }
public void setRoutingKey(String key) { routingKey = Args.notBlank(key, "routingKey"); }
SyntaxRoutingService extends ServiceImp { public void setRoutingKey(String key) { routingKey = Args.notBlank(key, "routingKey"); } }
SyntaxRoutingService extends ServiceImp { public void setRoutingKey(String key) { routingKey = Args.notBlank(key, "routingKey"); } SyntaxRoutingService(); }
SyntaxRoutingService extends ServiceImp { public void setRoutingKey(String key) { routingKey = Args.notBlank(key, "routingKey"); } 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 setRoutingKey(String key) { routingKey = Args.notBlank(key, "routingKey"); } 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();  }