Channel implements ComponentLifecycleExtension, StateManagedComponentContainer, EventHandlerAware, ConfigComment { public void setWorkflowList(WorkflowList workflows) { workflowList = Args.notNull(workflows, "workflowList"); } Channel();  Channel(String uid); @Override void prepare(); @Override void registerEventHandler(EventHandler eh); @Override void changeState(ComponentState s); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); void setConsumeConnection(AdaptrisConnection connection); AdaptrisConnection getConsumeConnection(); void setProduceConnection(AdaptrisConnection connection); AdaptrisConnection getProduceConnection(); void setWorkflowList(WorkflowList workflows); WorkflowList getWorkflowList(); void setMessageErrorHandler(ProcessingExceptionHandler errorHandler); ProcessingExceptionHandler getMessageErrorHandler(); boolean isAvailable(); void toggleAvailability(boolean b); void registerActiveMsgErrorHandler(ProcessingExceptionHandler m); ProcessingExceptionHandler retrieveActiveMsgErrorHandler(); @Override String getUniqueId(); void setUniqueId(String string); boolean hasUniqueId(); @Override void requestInit(); @Override void requestStart(); @Override void requestStop(); @Override void requestClose(); @Override ComponentState retrieveComponentState(); @Override void requestChildInit(); @Override void requestChildStart(); @Override void requestChildStop(); @Override void requestChildClose(); Boolean getAutoStart(); void setAutoStart(Boolean autoStart); boolean shouldStart(); Date lastStartTime(); Date lastStopTime(); @Override void setComments(String s); @Override String getComments();  }
@Test public void testSetWorkflowList() { Channel c = new Channel(); WorkflowList wl = new WorkflowList(); c.setWorkflowList(wl); assertEquals(wl, c.getWorkflowList()); try { c.setWorkflowList(null); fail(); } catch (IllegalArgumentException expected) { } assertEquals(wl, c.getWorkflowList()); }