1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Matthew Khouzam - Initial generation with CodePro tools
11 * Alexandre Montplaisir - Clean up, consolidate redundant tests
12 *******************************************************************************/
14 package org
.eclipse
.linuxtools
.tmf
.core
.tests
.ctfadaptor
;
16 import static org
.junit
.Assert
.assertEquals
;
17 import static org
.junit
.Assert
.assertNotNull
;
19 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfContent
;
20 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEventField
;
21 import org
.junit
.After
;
22 import org
.junit
.Before
;
23 import org
.junit
.Test
;
26 * The class <code>CtfTmfContentTest</code> contains tests for the class
27 * <code>{@link CtfTmfContent}</code>.
32 public class CtfTmfContentTest
{
34 private CtfTmfContent fixture
;
40 * the command line arguments
42 public static void main(String
[] args
) {
43 new org
.junit
.runner
.JUnitCore().run(CtfTmfContentTest
.class);
47 * Perform pre-test initialization.
51 fixture
= new CtfTmfContent("", new ITmfEventField
[] {}); //$NON-NLS-1$
55 * Perform post-test clean-up.
58 public void tearDown() {
59 // Add additional tear down code here
64 * Run the CtfTmfContent(String,ITmfEventField[]) constructor test.
67 public void testCtfTmfContent() {
68 String name
= ""; //$NON-NLS-1$
69 ITmfEventField
[] fields
= new ITmfEventField
[] {};
70 CtfTmfContent result
= new CtfTmfContent(name
, fields
);
72 assertNotNull(result
);
73 assertEquals("", result
.toString()); //$NON-NLS-1$
74 assertEquals("", result
.getName()); //$NON-NLS-1$
75 assertEquals(null, result
.getValue());
79 * Run the String toString() method test.
82 public void testToString() {
83 String result
= fixture
.toString();
84 assertEquals("", result
); //$NON-NLS-1$
This page took 0.031704 seconds and 5 git commands to generate.