1 package org
.eclipse
.linuxtools
.ctf
.core
.tests
.types
;
3 import static org
.junit
.Assert
.assertNotNull
;
5 import org
.eclipse
.linuxtools
.ctf
.core
.event
.types
.Definition
;
6 import org
.eclipse
.linuxtools
.ctf
.core
.event
.types
.IDefinitionScope
;
7 import org
.eclipse
.linuxtools
.internal
.ctf
.core
.event
.io
.BitBuffer
;
8 import org
.junit
.After
;
9 import org
.junit
.Before
;
10 import org
.junit
.Test
;
13 * The class <code>DefinitionTest</code> contains tests for the class
14 * <code>{@link Definition}</code>.
17 * @version $Revision: 1.0 $
19 public class DefinitionTest
{
25 * the command line arguments
27 public static void main(String
[] args
) {
28 new org
.junit
.runner
.JUnitCore().run(DefinitionTest
.class);
32 * Perform pre-test initialization.
36 // add additional set up code here
40 * Perform post-test clean-up.
43 public void tearDown() {
44 // Add additional tear down code here
48 * Since Definition is abstract, we'll minimally extend it here to
51 class DefTest
extends Definition
{
53 public DefTest(IDefinitionScope definitionScope
, String fieldName
) {
54 super(definitionScope
, fieldName
);
58 public void read(BitBuffer input
) {
59 /* Just a test, no need to implement anything */
65 public void testToString() {
66 Definition fixture
= new DefTest(null, "Hello"); //$NON-NLS-1$
67 String result
= fixture
.toString();
69 assertNotNull(result
);