X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.ctf.core.tests%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Fctf%2Fcore%2Ftests%2Ftrace%2FStreamTest.java;h=a289b02df2652cf838a44405aa00546331f05453;hb=486efb2e13e1bea489a6196734e61d8ade1fc81b;hp=cf660c8f9fbd545b87db965f6504e19d27bd661a;hpb=3ef46b1ff117dd101012d66ab99ca3d538160fea;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamTest.java b/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamTest.java index cf660c8f9f..a289b02df2 100644 --- a/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamTest.java +++ b/org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/trace/StreamTest.java @@ -8,13 +8,13 @@ import java.util.HashMap; import java.util.Set; import org.eclipse.linuxtools.ctf.core.event.EventDeclaration; -import org.eclipse.linuxtools.ctf.core.event.metadata.exceptions.ParseException; import org.eclipse.linuxtools.ctf.core.event.types.StructDeclaration; import org.eclipse.linuxtools.ctf.core.tests.TestParams; import org.eclipse.linuxtools.ctf.core.trace.CTFReaderException; import org.eclipse.linuxtools.ctf.core.trace.CTFTrace; import org.eclipse.linuxtools.ctf.core.trace.Stream; import org.eclipse.linuxtools.ctf.core.trace.StreamInput; +import org.eclipse.linuxtools.internal.ctf.core.event.metadata.exceptions.ParseException; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -26,6 +26,7 @@ import org.junit.Test; * @author ematkho * @version $Revision: 1.0 $ */ +@SuppressWarnings("javadoc") public class StreamTest { private Stream fixture; @@ -42,8 +43,8 @@ public class StreamTest { /** * Perform pre-test initialization. - * - * @throws CTFReaderException + * + * @throws CTFReaderException */ @Before public void setUp() throws CTFReaderException { @@ -66,8 +67,8 @@ public class StreamTest { /** * Run the Stream(CTFTrace) constructor test. - * - * @throws CTFReaderException + * + * @throws CTFReaderException */ @Test public void testStream() throws CTFReaderException { @@ -87,27 +88,12 @@ public class StreamTest { fixture.addEvent(event); } - /** - * Run the void addEvent(EventDeclaration) method test with an event - * of which we modified the id. - * @throws ParseException - * - * @throws ParseException - */ - @Test - public void testAddEvent_modifiedEvent() throws ParseException { - EventDeclaration event = new EventDeclaration(); - event.setId(1L); - fixture.addEvent(event); - assertNotNull(fixture); - } - /** * Run the boolean eventContextIsSet() method test. */ @Test public void testEventContextIsSet() { - assertTrue(fixture.eventContextIsSet()); + assertTrue(fixture.isEventContextSet()); } /** * Run the boolean eventContextIsSet() method test. @@ -122,7 +108,7 @@ public class StreamTest { */ @Test public void testEventHeaderIsSet() { - assertTrue(fixture.eventHeaderIsSet()); + assertTrue(fixture.isEventHeaderSet()); } /** @@ -191,7 +177,7 @@ public class StreamTest { */ @Test public void testIdIsSet() { - boolean result = fixture.idIsSet(); + boolean result = fixture.isIdSet(); assertTrue(result); } @@ -200,7 +186,7 @@ public class StreamTest { */ @Test public void testPacketContextIsSet() { - boolean result = fixture.packetContextIsSet(); + boolean result = fixture.isPacketContextSet(); assertTrue(result); }