1 package org
.eclipse
.linuxtools
.tmf
.core
.tests
.ctfadaptor
;
3 import static org
.junit
.Assert
.assertEquals
;
4 import static org
.junit
.Assert
.assertNotNull
;
6 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfEventType
;
7 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEventField
;
8 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfEventField
;
9 import org
.junit
.After
;
10 import org
.junit
.Before
;
11 import org
.junit
.Test
;
14 * The class <code>CtfTmfEventTypeTest</code> contains tests for the class <code>{@link CtfTmfEventType}</code>.
16 * @generatedBy CodePro at 03/05/12 2:29 PM
18 * @version $Revision: 1.0 $
20 public class CtfTmfEventTypeTest
{
22 * Run the CtfTmfEventType(String,String,ITmfEventField) constructor test.
26 * @generatedBy CodePro at 03/05/12 2:29 PM
29 public void testCtfTmfEventType_1() {
30 String contextId
= ""; //$NON-NLS-1$
31 String eventName
= ""; //$NON-NLS-1$
32 ITmfEventField content
= new TmfEventField("", new ITmfEventField
[] {}); //$NON-NLS-1$
34 CtfTmfEventType result
= new CtfTmfEventType( eventName
, content
);
36 // add additional test code here
37 assertNotNull(result
);
38 assertEquals("", result
.toString()); //$NON-NLS-1$
39 assertEquals("", result
.getName()); //$NON-NLS-1$
40 assertEquals("Ctf Event", result
.getContext()); //$NON-NLS-1$
44 * Run the String toString() method test.
48 * @generatedBy CodePro at 03/05/12 2:29 PM
51 public void testToString_1()
53 CtfTmfEventType fixture
= new CtfTmfEventType("", new TmfEventField("", new ITmfEventField
[] {})); //$NON-NLS-1$ //$NON-NLS-2$
55 String result
= fixture
.toString();
57 // add additional test code here
58 assertEquals("", result
); //$NON-NLS-1$
62 * Perform pre-test initialization.
65 * if the initialization fails for some reason
67 * @generatedBy CodePro at 03/05/12 2:29 PM
72 // add additional set up code here
76 * Perform post-test clean-up.
79 * if the clean-up fails for some reason
81 * @generatedBy CodePro at 03/05/12 2:29 PM
84 public void tearDown()
86 // Add additional tear down code here
92 * @param args the command line arguments
94 * @generatedBy CodePro at 03/05/12 2:29 PM
96 public static void main(String
[] args
) {
97 new org
.junit
.runner
.JUnitCore().run(CtfTmfEventTypeTest
.class);
This page took 0.033179 seconds and 6 git commands to generate.