d318b1659e738fdb2b934c39b9ac858d829d81e1
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / src / org / eclipse / linuxtools / tmf / ui / tests / views / uml2sd / loader / Uml2SDTestSetup.java
1 /*******************************************************************************
2 * Copyright (c) 2011, 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.linuxtools.tmf.ui.tests.views.uml2sd.loader;
13
14 import junit.extensions.TestSetup;
15 import junit.framework.Test;
16
17 /**
18 * Test setup class for one-time setUp() and tearDown() across test cases.
19 */
20 public class Uml2SDTestSetup extends TestSetup {
21
22 /**
23 * Constructor
24 * @param test the test to use.
25 */
26 public Uml2SDTestSetup(Test test) {
27 super(test);
28 }
29
30 /*
31 * (non-Javadoc)
32 * @see junit.extensions.TestSetup#setUp()
33 */
34 @Override
35 protected void setUp() throws Exception {
36 Uml2SDTestFacility.getInstance().init();
37 }
38
39 /*
40 * (non-Javadoc)
41 * @see junit.extensions.TestSetup#tearDown()
42 */
43 @Override
44 protected void tearDown() throws Exception {
45 Uml2SDTestFacility.getInstance().dispose();
46 }
47
48 }
This page took 0.031183 seconds and 5 git commands to generate.