tmf: Update tmf.core unit tests to JUnit4
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / ctfadaptor / CtfTmfTimestampTest.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Matthew Khouzam - Initial generation with CodePro tools
11 * Alexandre Montplaisir - Clean up, consolidate redundant tests
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
15
16 import static org.junit.Assert.assertEquals;
17 import static org.junit.Assert.assertNotNull;
18
19 import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTimestamp;
20 import org.junit.Test;
21
22 /**
23 * The class <code>CtfTmfTimestampTest</code> contains tests for the class
24 * <code>{@link CtfTmfTimestamp}</code>.
25 *
26 * @author ematkho
27 * @version 1.0
28 */
29 public class CtfTmfTimestampTest {
30
31 /**
32 * Run the CtfTmfTimestamp(long) constructor test.
33 */
34 @Test
35 public void testCtfTmfTimestamp() {
36 long timestamp = 1L;
37
38 CtfTmfTimestamp result = new CtfTmfTimestamp(timestamp);
39
40 assertNotNull(result);
41 //assertEquals("00:00:00.000 000 001", result.toString()); //$NON-NLS-1$
42 assertEquals(0, result.getPrecision());
43 assertEquals(-9, result.getScale());
44 assertEquals(1L, result.getValue());
45 }
46 }
This page took 0.031995 seconds and 5 git commands to generate.