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;
* @author ematkho
* @version $Revision: 1.0 $
*/
+@SuppressWarnings("javadoc")
public class StreamTest {
private Stream fixture;
/**
* Perform pre-test initialization.
- *
- * @throws CTFReaderException
+ *
+ * @throws CTFReaderException
*/
@Before
public void setUp() throws CTFReaderException {
/**
* Run the Stream(CTFTrace) constructor test.
- *
- * @throws CTFReaderException
+ *
+ * @throws CTFReaderException
*/
@Test
public void testStream() throws CTFReaderException {
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.
*/
@Test
public void testEventHeaderIsSet() {
- assertTrue(fixture.eventHeaderIsSet());
+ assertTrue(fixture.isEventHeaderSet());
}
/**
*/
@Test
public void testIdIsSet() {
- boolean result = fixture.idIsSet();
+ boolean result = fixture.isIdSet();
assertTrue(result);
}
*/
@Test
public void testPacketContextIsSet() {
- boolean result = fixture.packetContextIsSet();
+ boolean result = fixture.isPacketContextSet();
assertTrue(result);
}