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
.CtfTmfTimestamp
;
20 import org
.junit
.Test
;
23 * The class <code>CtfTmfTimestampTest</code> contains tests for the class
24 * <code>{@link CtfTmfTimestamp}</code>.
29 public class CtfTmfTimestampTest
{
32 * Run the CtfTmfTimestamp(long) constructor test.
35 public void testCtfTmfTimestamp() {
38 CtfTmfTimestamp result
= new CtfTmfTimestamp(timestamp
);
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());
This page took 0.031995 seconds and 5 git commands to generate.