1 package org
.eclipse
.linuxtools
.ctf
.core
.tests
.trace
;
3 import static org
.junit
.Assert
.assertNotNull
;
4 import static org
.junit
.Assert
.assertNull
;
6 import java
.nio
.ByteOrder
;
8 import org
.eclipse
.linuxtools
.ctf
.core
.tests
.TestParams
;
9 import org
.eclipse
.linuxtools
.ctf
.core
.trace
.CTFReaderException
;
10 import org
.eclipse
.linuxtools
.ctf
.core
.trace
.Metadata
;
11 import org
.junit
.After
;
12 import org
.junit
.Before
;
13 import org
.junit
.Test
;
16 * The class <code>MetadataTest</code> contains tests for the class
17 * <code>{@link Metadata}</code>.
20 * @version $Revision: 1.0 $
22 @SuppressWarnings("javadoc")
23 public class MetadataTest
{
25 private Metadata fixture
;
31 * the command line arguments
33 public static void main(String
[] args
) {
34 new org
.junit
.runner
.JUnitCore().run(MetadataTest
.class);
38 * Perform pre-test initialization.
40 * @throws CTFReaderException
43 public void setUp() throws CTFReaderException
{
44 fixture
= new Metadata(TestParams
.createTrace());
48 * Perform post-test clean-up.
51 public void tearDown() {
52 // Add additional tear down code here
56 * Run the Metadata(CTFTrace) constructor test.
59 public void testMetadata() {
60 assertNotNull(fixture
);
64 * Run the ByteOrder getDetectedByteOrder() method test.
67 public void testGetDetectedByteOrder() {
68 ByteOrder result
= fixture
.getDetectedByteOrder();
76 public void testToSting() {
77 String result
= fixture
.toString();
78 assertNotNull(result
);
82 * Run the void parse() method test.
84 * @throws CTFReaderException
86 @Test(expected
= org
.eclipse
.linuxtools
.ctf
.core
.trace
.CTFReaderException
.class)
87 public void testParse() throws CTFReaderException
{
This page took 0.035443 seconds and 6 git commands to generate.