@Test public void testSetUniqueId() throws Exception { Adapter a = new Adapter(); a.setUniqueId("testSetUniqueId"); assertEquals("testSetUniqueId", a.getUniqueId()); try { a.setUniqueId(null); fail(); } catch (IllegalArgumentException e) { } assertEquals("testSetUniqueId", a.getUniqueId()); try { a.setUniqueId(""); fail(); } catch (IllegalArgumentException e) { } assertEquals("testSetUniqueId", a.getUniqueId()); }
public void setUniqueId(String s) { uniqueId = Args.notBlank(s, "uniqueId"); }
Adapter implements StateManagedComponentContainer, ComponentLifecycleExtension { public void setUniqueId(String s) { uniqueId = Args.notBlank(s, "uniqueId"); } }
Adapter implements StateManagedComponentContainer, ComponentLifecycleExtension { public void setUniqueId(String s) { uniqueId = Args.notBlank(s, "uniqueId"); } Adapter(); }
Adapter implements StateManagedComponentContainer, ComponentLifecycleExtension { public void setUniqueId(String s) { uniqueId = Args.notBlank(s, "uniqueId"); } Adapter(); @Deprecated void castorWorkAround(); @Override void prepare(); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); void setChannelList(ChannelList param); ChannelList getChannelList(); void setUniqueId(String s); @Override String getUniqueId(); void setEventHandler(EventHandler param); EventHandler getEventHandler(); void setMessageErrorHandler(ProcessingExceptionHandler param); ProcessingExceptionHandler getMessageErrorHandler(); void setStartUpEventImp(String name); String getStartUpEventImp(); void setHeartbeatEventImp(String name); String getHeartbeatEventImp(); void setFailedMessageRetrier(FailedMessageRetrier retrier); FailedMessageRetrier getFailedMessageRetrier(); void setLogHandler(LogHandler lh); LogHandler getLogHandler(); LogHandler logHandler(); TimeInterval getHeartbeatEventInterval(); void setHeartbeatEventInterval(TimeInterval interval); @Override synchronized void requestInit(); @Override synchronized void requestStart(); @Override synchronized void requestStop(); @Override synchronized void requestClose(); @Override ComponentState retrieveComponentState(); @Override void changeState(ComponentState newState); @Override void requestChildInit(); @Override void requestChildStart(); @Override void requestChildStop(); @Override void requestChildClose(); SharedComponentList getSharedComponents(); void setSharedComponents(SharedComponentList scl); MessageErrorDigester getMessageErrorDigester(); void setMessageErrorDigester(MessageErrorDigester messageErrorDigest); Date lastStartTime(); Date lastStopTime(); }
Adapter implements StateManagedComponentContainer, ComponentLifecycleExtension { public void setUniqueId(String s) { uniqueId = Args.notBlank(s, "uniqueId"); } Adapter(); @Deprecated void castorWorkAround(); @Override void prepare(); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); void setChannelList(ChannelList param); ChannelList getChannelList(); void setUniqueId(String s); @Override String getUniqueId(); void setEventHandler(EventHandler param); EventHandler getEventHandler(); void setMessageErrorHandler(ProcessingExceptionHandler param); ProcessingExceptionHandler getMessageErrorHandler(); void setStartUpEventImp(String name); String getStartUpEventImp(); void setHeartbeatEventImp(String name); String getHeartbeatEventImp(); void setFailedMessageRetrier(FailedMessageRetrier retrier); FailedMessageRetrier getFailedMessageRetrier(); void setLogHandler(LogHandler lh); LogHandler getLogHandler(); LogHandler logHandler(); TimeInterval getHeartbeatEventInterval(); void setHeartbeatEventInterval(TimeInterval interval); @Override synchronized void requestInit(); @Override synchronized void requestStart(); @Override synchronized void requestStop(); @Override synchronized void requestClose(); @Override ComponentState retrieveComponentState(); @Override void changeState(ComponentState newState); @Override void requestChildInit(); @Override void requestChildStart(); @Override void requestChildStop(); @Override void requestChildClose(); SharedComponentList getSharedComponents(); void setSharedComponents(SharedComponentList scl); MessageErrorDigester getMessageErrorDigester(); void setMessageErrorDigester(MessageErrorDigester messageErrorDigest); Date lastStartTime(); Date lastStopTime();  }