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
CommitLineData
95bf10e7
AM
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
81c8e6f7
MK
14package org.eclipse.linuxtools.tmf.core.tests.ctfadaptor;
15
16import static org.junit.Assert.assertEquals;
17import static org.junit.Assert.assertNotNull;
18
19import org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTimestamp;
81c8e6f7
MK
20import org.junit.Test;
21
22/**
95bf10e7
AM
23 * The class <code>CtfTmfTimestampTest</code> contains tests for the class
24 * <code>{@link CtfTmfTimestamp}</code>.
81c8e6f7 25 *
81c8e6f7 26 * @author ematkho
95bf10e7 27 * @version 1.0
81c8e6f7
MK
28 */
29public class CtfTmfTimestampTest {
81c8e6f7 30
81c8e6f7 31 /**
95bf10e7 32 * Run the CtfTmfTimestamp(long) constructor test.
81c8e6f7
MK
33 */
34 @Test
95bf10e7
AM
35 public void testCtfTmfTimestamp() {
36 long timestamp = 1L;
81c8e6f7 37
95bf10e7 38 CtfTmfTimestamp result = new CtfTmfTimestamp(timestamp);
81c8e6f7 39
81c8e6f7 40 assertNotNull(result);
6e1886bc 41 //assertEquals("00:00:00.000 000 001", result.toString()); //$NON-NLS-1$
81c8e6f7
MK
42 assertEquals(0, result.getPrecision());
43 assertEquals(-9, result.getScale());
44 assertEquals(1L, result.getValue());
45 }
1c5a6a8f 46}
This page took 0.029535 seconds and 5 git commands to generate.