Skip to content
Snippets Groups Projects
Commit 23cfca35 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

added test for port nameing

parent f8cb9052
No related branches found
No related tags found
No related merge requests found
package teetime.framework;
public class AbstractCompositeStageTest {
}
package teetime.framework;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class AbstractPortTest {
@Test
public void testNameing() {
NameingTestStage stage = new NameingTestStage();
assertThat(stage.namedPort.toString(), is("Testname"));
}
private class NameingTestStage extends AbstractConsumerStage<Object> {
public OutputPort<Object> namedPort = createOutputPort("Testname");
@Override
protected void execute(final Object element) {
// TODO Auto-generated method stub
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment