1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 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
.tracecompass
.tmf
.ctf
.core
.tests
.event
;
16 import static org
.junit
.Assert
.assertEquals
;
17 import static org
.junit
.Assert
.assertNotNull
;
19 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEventField
;
20 import org
.eclipse
.tracecompass
.tmf
.core
.event
.TmfEventField
;
21 import org
.eclipse
.tracecompass
.tmf
.ctf
.core
.event
.CtfTmfEventType
;
22 import org
.junit
.Test
;
25 * The class <code>CtfTmfEventTypeTest</code> contains tests for the class
26 * <code>{@link CtfTmfEventType}</code>.
31 public class CtfTmfEventTypeTest
{
34 * Run the CtfTmfEventType(String,String,ITmfEventField) constructor test.
37 public void testCtfTmfEventType() {
38 String eventName
= "";
39 ITmfEventField content
= new TmfEventField("", null, new ITmfEventField
[] {});
40 CtfTmfEventType result
= new CtfTmfEventType(eventName
, content
);
42 assertNotNull(result
);
43 assertEquals("", result
.toString());
44 assertEquals("", result
.getName());
48 * Run the String toString() method test.
51 public void testToString() {
52 ITmfEventField emptyField
= new TmfEventField("", null, new ITmfEventField
[] {});
53 CtfTmfEventType fixture
= new CtfTmfEventType("" , emptyField
);
55 String result
= fixture
.toString();
57 assertEquals("", result
);