@Test public void reConfiguredActivity() throws Exception { assertEquals("Unexpected inputs", 0, activity.getInputPorts().size()); assertEquals("Unexpected outputs", 0, activity.getOutputPorts().size()); activity.configure(configBean); assertEquals("Unexpected inputs", 1, activity.getInputPorts().size()); assertEquals("Unexpected outputs", 2, activity.getOutputPorts().size()); activity.configure(configBean); assertEquals("Unexpected inputs", 1, activity.getInputPorts().size()); assertEquals("Unexpected outputs", 2, activity.getOutputPorts().size()); }
@Override public void configure(RAWvernaActivityConfigurationBean configBean) throws ActivityConfigurationException { if (configBean.getExampleString().equals("invalidExample")) { throw new ActivityConfigurationException("Example string can't be 'invalidExample'"); } this.configBean = configBean; configurePorts(); }
RAWvernaActivity extends AbstractAsynchronousActivity<RAWvernaActivityConfigurationBean> implements
    AsynchronousActivity<RAWvernaActivityConfigurationBean> { @Override public void configure(RAWvernaActivityConfigurationBean configBean) throws ActivityConfigurationException { if (configBean.getExampleString().equals("invalidExample")) { throw new ActivityConfigurationException("Example string can't be 'invalidExample'"); } this.configBean = configBean; configurePorts(); } }
RAWvernaActivity extends AbstractAsynchronousActivity<RAWvernaActivityConfigurationBean> implements
    AsynchronousActivity<RAWvernaActivityConfigurationBean> { @Override public void configure(RAWvernaActivityConfigurationBean configBean) throws ActivityConfigurationException { if (configBean.getExampleString().equals("invalidExample")) { throw new ActivityConfigurationException("Example string can't be 'invalidExample'"); } this.configBean = configBean; configurePorts(); }  }
RAWvernaActivity extends AbstractAsynchronousActivity<RAWvernaActivityConfigurationBean> implements
    AsynchronousActivity<RAWvernaActivityConfigurationBean> { @Override public void configure(RAWvernaActivityConfigurationBean configBean) throws ActivityConfigurationException { if (configBean.getExampleString().equals("invalidExample")) { throw new ActivityConfigurationException("Example string can't be 'invalidExample'"); } this.configBean = configBean; configurePorts(); }  @Override void configure(RAWvernaActivityConfigurationBean configBean); @SuppressWarnings("unchecked") @Override void executeAsynch(final Map<String, T2Reference> inputs, final AsynchronousActivityCallback callback); @Override RAWvernaActivityConfigurationBean getConfiguration(); }
RAWvernaActivity extends AbstractAsynchronousActivity<RAWvernaActivityConfigurationBean> implements
    AsynchronousActivity<RAWvernaActivityConfigurationBean> { @Override public void configure(RAWvernaActivityConfigurationBean configBean) throws ActivityConfigurationException { if (configBean.getExampleString().equals("invalidExample")) { throw new ActivityConfigurationException("Example string can't be 'invalidExample'"); } this.configBean = configBean; configurePorts(); }  @Override void configure(RAWvernaActivityConfigurationBean configBean); @SuppressWarnings("unchecked") @Override void executeAsynch(final Map<String, T2Reference> inputs, final AsynchronousActivityCallback callback); @Override RAWvernaActivityConfigurationBean getConfiguration();  }