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 public class MetadataTest
{
24 private Metadata fixture
;
30 * the command line arguments
32 public static void main(String
[] args
) {
33 new org
.junit
.runner
.JUnitCore().run(MetadataTest
.class);
37 * Perform pre-test initialization.
39 * @throws CTFReaderException
42 public void setUp() throws CTFReaderException
{
43 fixture
= new Metadata(TestParams
.createTrace());
47 * Perform post-test clean-up.
50 public void tearDown() {
51 // Add additional tear down code here
55 * Run the Metadata(CTFTrace) constructor test.
58 public void testMetadata() {
59 assertNotNull(fixture
);
63 * Run the ByteOrder getDetectedByteOrder() method test.
66 public void testGetDetectedByteOrder() {
67 ByteOrder result
= fixture
.getDetectedByteOrder();
75 public void testToSting() {
76 String result
= fixture
.toString();
77 assertNotNull(result
);
81 * Run the void parse() method test.
83 * @throws CTFReaderException
85 @Test(expected
= org
.eclipse
.linuxtools
.ctf
.core
.trace
.CTFReaderException
.class)
86 public void testParse() throws CTFReaderException
{
This page took 0.034387 seconds and 6 git commands to generate.