@Test public void reConfiguredSpecialPorts() throws Exception { activity.configure(configBean); RAWvernaActivityConfigurationBean specialBean = new RAWvernaActivityConfigurationBean(); specialBean.setExampleString("specialCase"); specialBean.setExampleUri(URI.create("http: activity.configure(specialBean); assertEquals("Unexpected inputs", 2, activity.getInputPorts().size()); assertEquals("Unexpected outputs", 3, 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();  }