Improve test cases. Coverage of 85%+ and fix bugs.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / ctfadaptor / CtfTmfEventTypeTest.java
1 package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
2
3 import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEventType;
4 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
5 import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
6 import org.junit.*;
7 import static org.junit.Assert.*;
8
9 /**
10 * The class <code>CtfTmfEventTypeTest</code> contains tests for the class <code>{@link CtfTmfEventType}</code>.
11 *
12 * @generatedBy CodePro at 03/05/12 2:29 PM
13 * @author ematkho
14 * @version $Revision: 1.0 $
15 */
16 public class CtfTmfEventTypeTest {
17 /**
18 * Run the CtfTmfEventType(String,String,ITmfEventField) constructor test.
19 *
20 * @throws Exception
21 *
22 * @generatedBy CodePro at 03/05/12 2:29 PM
23 */
24 @Test
25 public void testCtfTmfEventType_1()
26 throws Exception {
27 String contextId = "";
28 String eventName = "";
29 ITmfEventField content = new TmfEventField("", new ITmfEventField[] {});
30
31 CtfTmfEventType result = new CtfTmfEventType(contextId, eventName, content);
32
33 // add additional test code here
34 assertNotNull(result);
35 assertEquals("", result.toString());
36 assertEquals("", result.getName());
37 assertEquals("", result.getContext());
38 }
39
40 /**
41 * Run the String toString() method test.
42 *
43 * @throws Exception
44 *
45 * @generatedBy CodePro at 03/05/12 2:29 PM
46 */
47 @Test
48 public void testToString_1()
49 throws Exception {
50 CtfTmfEventType fixture = new CtfTmfEventType("", "", new TmfEventField("", new ITmfEventField[] {}));
51
52 String result = fixture.toString();
53
54 // add additional test code here
55 assertEquals("", result);
56 }
57
58 /**
59 * Perform pre-test initialization.
60 *
61 * @throws Exception
62 * if the initialization fails for some reason
63 *
64 * @generatedBy CodePro at 03/05/12 2:29 PM
65 */
66 @Before
67 public void setUp()
68 throws Exception {
69 // add additional set up code here
70 }
71
72 /**
73 * Perform post-test clean-up.
74 *
75 * @throws Exception
76 * if the clean-up fails for some reason
77 *
78 * @generatedBy CodePro at 03/05/12 2:29 PM
79 */
80 @After
81 public void tearDown()
82 throws Exception {
83 // Add additional tear down code here
84 }
85
86 /**
87 * Launch the test.
88 *
89 * @param args the command line arguments
90 *
91 * @generatedBy CodePro at 03/05/12 2:29 PM
92 */
93 public static void main(String[] args) {
94 new org.junit.runner.JUnitCore().run(CtfTmfEventTypeTest.class);
95 }
96 }
This page took 0.031826 seconds and 5 git commands to generate.