tmf: Rework test trace classes
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / statistics / TmfStateStatisticsTest.java
CommitLineData
e1c43333 1/*******************************************************************************
61759503 2 * Copyright (c) 2012, 2013 Ericsson
e1c43333
AM
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 * Alexandre Montplaisir - Initial API and implementation
11 ******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.core.tests.statistics;
14
5dd1fa65
AM
15import static org.junit.Assume.assumeTrue;
16
e1c43333
AM
17import java.io.File;
18import java.io.IOException;
19
20import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
21import org.eclipse.linuxtools.tmf.core.statistics.TmfStateStatistics;
22import org.junit.BeforeClass;
23
24/**
25 * Unit tests for the {@link TmfStateStatistics}
26 *
27 * @author Alexandre Montplaisir
28 */
29public class TmfStateStatisticsTest extends TmfStatisticsTest {
30
31 /**
32 * Set up the fixture (build the state history, etc.) once for all tests.
33 */
34 @BeforeClass
35 public static void setUpClass() {
9ac63b5b 36 assumeTrue(testTrace.exists());
e1c43333 37 try {
cad06250 38 File htFile = File.createTempFile("stats-test", ".ht");
e1c43333 39 htFile.deleteOnExit();
9ac63b5b 40 backend = new TmfStateStatistics(testTrace.getTrace(), htFile);
e1c43333
AM
41 } catch (TmfTraceException e) {
42 e.printStackTrace();
43 } catch (IOException e) {
44 e.printStackTrace();
45 }
46 }
47}
This page took 0.032272 seconds and 5 git commands to generate.