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 * Alexandre Montplaisir - Initial API and implementation
11 ******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.core
.tests
.statistics
;
15 import static org
.junit
.Assume
.assumeTrue
;
18 import java
.io
.IOException
;
20 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfTrace
;
21 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.TmfTraceException
;
22 import org
.eclipse
.linuxtools
.tmf
.core
.statistics
.TmfStateStatistics
;
23 import org
.eclipse
.linuxtools
.tmf
.core
.tests
.shared
.CtfTmfTestTraces
;
24 import org
.junit
.BeforeClass
;
27 * Unit tests for the {@link TmfStateStatistics}
29 * @author Alexandre Montplaisir
31 public class TmfStateStatisticsTest
extends TmfStatisticsTest
{
34 * Set up the fixture (build the state history, etc.) once for all tests.
37 public static void setUpClass() {
38 assumeTrue(CtfTmfTestTraces
.tracesExist());
40 File htFile
= File
.createTempFile("stats-test", ".ht");
41 htFile
.deleteOnExit();
42 CtfTmfTrace trace
= CtfTmfTestTraces
.getTestTrace(TRACE_INDEX
);
43 backend
= new TmfStateStatistics(trace
, htFile
);
44 } catch (TmfTraceException e
) {
46 } catch (IOException e
) {
This page took 0.03487 seconds and 6 git commands to generate.