15400a8209b999a7817debbd675d5d1127d43d78
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
{
34 * @param args the command line arguments
36 public static void main(String
[] args
) {
37 new org
.junit
.runner
.JUnitCore().run(CtfTmfTimestampTest
.class);
41 * Run the CtfTmfTimestamp(long) constructor test.
44 public void testCtfTmfTimestamp() {
47 CtfTmfTimestamp result
= new CtfTmfTimestamp(timestamp
);
49 assertNotNull(result
);
50 assertEquals("00:00:00.000 000 001", result
.toString()); //$NON-NLS-1$
51 assertEquals(0, result
.getPrecision());
52 assertEquals(-9, result
.getScale());
53 assertEquals(1L, result
.getValue());
This page took 0.032247 seconds and 5 git commands to generate.