- /**
- * Test the clone method
- */
- @Test
- public void testClone() {
- CtfTmfEvent other = CtfTmfEvent.getNullEvent().clone();
- assertNotNull(other);
- }
-
- /**
- * Run the CTFEvent getNullEvent() method test.
- */
- @Test
- public void testGetNullEvent() {
- CtfTmfEvent nullEvent = CtfTmfEvent.getNullEvent();
-
- assertNotNull(nullEvent);
- assertEquals(-1, nullEvent.getCPU());
- assertEquals("Empty CTF event", nullEvent.getEventName()); //$NON-NLS-1$
- assertEquals("No stream", nullEvent.getChannelName()); //$NON-NLS-1$
- assertArrayEquals(new ITmfEventField[0], nullEvent.getContent().getFields());
- assertEquals(-1L, nullEvent.getID());
- assertEquals(-1L, nullEvent.getTimestamp().getValue());
- }
-