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

reenabled test

parent 0148beca
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
*/ */
package teetime.framework.pipe; package teetime.framework.pipe;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -29,15 +30,17 @@ import teetime.framework.signal.ISignal; ...@@ -29,15 +30,17 @@ import teetime.framework.signal.ISignal;
import teetime.framework.signal.StartingSignal; import teetime.framework.signal.StartingSignal;
import teetime.framework.signal.TerminatingSignal; import teetime.framework.signal.TerminatingSignal;
import teetime.framework.signal.ValidatingSignal; import teetime.framework.signal.ValidatingSignal;
import teetime.stage.basic.merger.Merger;
public class SpScPipeTest { public class SpScPipeTest {
// @Ignore // @Ignore
// ignore as long as this test passes null ports to SpScPipe // ignore as long as this test passes null ports to SpScPipe
// @Test @Test
public void testSignalOrdering() throws Exception { public void testSignalOrdering() throws Exception {
OutputPort<Object> sourcePort = null; Merger<Object> portSource = new Merger<Object>();
InputPort<Object> targetPort = null; OutputPort<Object> sourcePort = portSource.getOutputPort();
InputPort<Object> targetPort = portSource.getNewInputPort();
AbstractInterThreadPipe pipe = new SpScPipe(sourcePort, targetPort, 1); // IPipe does not provide getSignal method AbstractInterThreadPipe pipe = new SpScPipe(sourcePort, targetPort, 1); // IPipe does not provide getSignal method
List<ISignal> signals = new ArrayList<ISignal>(); List<ISignal> signals = new ArrayList<ISignal>();
...@@ -63,7 +66,7 @@ public class SpScPipeTest { ...@@ -63,7 +66,7 @@ public class SpScPipeTest {
} }
secondSignals.add(temp); secondSignals.add(temp);
} }
// Assert.assertEquals(list, secondList); assertEquals(signals, secondSignals);
} }
@Test(expected = NullPointerException.class) @Test(expected = NullPointerException.class)
......
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