Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / statistics / TmfStateStatisticsTest.java
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 * Alexandre Montplaisir - Initial API and implementation
11 ******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.tests.statistics;
14
15 import java.io.File;
16 import java.io.IOException;
17
18 import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
19 import org.eclipse.linuxtools.tmf.core.statistics.TmfStateStatistics;
20 import org.junit.BeforeClass;
21
22 /**
23 * Unit tests for the {@link TmfStateStatistics}
24 *
25 * @author Alexandre Montplaisir
26 */
27 public class TmfStateStatisticsTest extends TmfStatisticsTest {
28
29 /**
30 * Set up the fixture (build the state history, etc.) once for all tests.
31 */
32 @BeforeClass
33 public static void setUpClass() {
34 try {
35 File htFile = File.createTempFile("stats-test", ".ht"); //$NON-NLS-1$ //$NON-NLS-2$
36 htFile.deleteOnExit();
37 backend = new TmfStateStatistics(TestParams.createTrace(), htFile);
38 } catch (TmfTraceException e) {
39 e.printStackTrace();
40 } catch (IOException e) {
41 e.printStackTrace();
42 }
43 }
44 }
This page took 0.049968 seconds and 6 git commands to generate.