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.
41 fixture
= new Metadata(TestParams
.createTrace());
45 * Perform post-test clean-up.
48 public void tearDown() {
49 // Add additional tear down code here
53 * Run the Metadata(CTFTrace) constructor test.
56 public void testMetadata() {
57 assertNotNull(fixture
);
61 * Run the ByteOrder getDetectedByteOrder() method test.
64 public void testGetDetectedByteOrder() {
65 ByteOrder result
= fixture
.getDetectedByteOrder();
70 * Run the void parse() method test.
72 * @throws CTFReaderException
74 @Test(expected
= org
.eclipse
.linuxtools
.ctf
.core
.trace
.CTFReaderException
.class)
75 public void testParse() throws CTFReaderException
{
This page took 0.031779 seconds and 5 git commands to generate.