/*******************************************************************************
- * Copyright (c) 2011 Ericsson
+ * Copyright (c) 2011, 2013 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
*
* Contributors:
* Bernd Hufmann - Initial API and implementation
+ * Alexandre Montplaisir - Port to JUnit4
*******************************************************************************/
+
package org.eclipse.linuxtools.tmf.core.tests.uml2sd;
-import junit.framework.TestCase;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
import org.eclipse.linuxtools.tmf.core.uml2sd.TmfSyncSequenceDiagramEvent;
+import org.junit.Test;
+
/**
- * <b><u>TmfSyncSequenceDiagramEventTest</u></b>
- * <p>
- * Implement me. Please.
- * <p>
+ * TmfSyncSequenceDiagramEventTest
*/
-@SuppressWarnings({"nls","javadoc"})
-public class TmfSyncSequenceDiagramEventTest extends TestCase {
+@SuppressWarnings("nls")
+public class TmfSyncSequenceDiagramEventTest {
private final String fContext = ITmfEventType.DEFAULT_CONTEXT_ID;
private final String fTypeId = "Some type";
private final ITmfEvent fEvent1;
private final TmfEventField fContent1;
- public TmfSyncSequenceDiagramEventTest () {
+ /**
+ * Constructor for the test case
+ */
+ public TmfSyncSequenceDiagramEventTest() {
fContent1 = new TmfEventField(ITmfEventField.ROOT_FIELD_ID, "Some content");
fEvent1 = new TmfEvent(null, fTimestamp1, fSource, fType, fContent1, fReference);
}
- @Override
- public void setUp() throws Exception {
- }
-
- @Override
- public void tearDown() throws Exception {
- }
-
+ /**
+ * Main test
+ */
+ @Test
public void testTmfSyncSequenceDiagramEvent() {
TmfSyncSequenceDiagramEvent event = null;
try {