1 package org
.eclipse
.linuxtools
.ctf
.core
.tests
.trace
;
3 import static org
.junit
.Assert
.assertNotNull
;
4 import static org
.junit
.Assert
.assertNull
;
5 import static org
.junit
.Assume
.assumeTrue
;
7 import java
.nio
.ByteOrder
;
9 import org
.eclipse
.linuxtools
.ctf
.core
.tests
.TestParams
;
10 import org
.eclipse
.linuxtools
.ctf
.core
.trace
.CTFReaderException
;
11 import org
.eclipse
.linuxtools
.ctf
.core
.trace
.Metadata
;
12 import org
.junit
.After
;
13 import org
.junit
.Before
;
14 import org
.junit
.Test
;
17 * The class <code>MetadataTest</code> contains tests for the class
18 * <code>{@link Metadata}</code>.
21 * @version $Revision: 1.0 $
23 @SuppressWarnings("javadoc")
24 public class MetadataTest
{
26 private Metadata fixture
;
32 * the command line arguments
34 public static void main(String
[] args
) {
35 new org
.junit
.runner
.JUnitCore().run(MetadataTest
.class);
39 * Perform pre-test initialization.
41 * @throws CTFReaderException
44 public void setUp() throws CTFReaderException
{
45 assumeTrue(TestParams
.tracesExist());
46 fixture
= new Metadata(TestParams
.createTrace());
50 * Perform post-test clean-up.
53 public void tearDown() {
54 // Add additional tear down code here
58 * Run the Metadata(CTFTrace) constructor test.
61 public void testMetadata() {
62 assertNotNull(fixture
);
66 * Run the ByteOrder getDetectedByteOrder() method test.
69 public void testGetDetectedByteOrder() {
70 ByteOrder result
= fixture
.getDetectedByteOrder();
78 public void testToSting() {
79 String result
= fixture
.toString();
80 assertNotNull(result
);
84 * Run the void parse() method test.
86 * @throws CTFReaderException
88 @Test(expected
= org
.eclipse
.linuxtools
.ctf
.core
.trace
.CTFReaderException
.class)
89 public void testParse() throws CTFReaderException
{
This page took 0.057926 seconds and 5 git commands to generate.