1 | /** |
2 | * <copyright> |
3 | * </copyright> |
4 | * |
5 | * $Id$ |
6 | */ |
7 | package de.uka.ipd.sdq.probespec.tests; |
8 | |
9 | import de.uka.ipd.sdq.probespec.CPUStateCalculator; |
10 | import de.uka.ipd.sdq.probespec.probespecFactory; |
11 | |
12 | import junit.textui.TestRunner; |
13 | |
14 | /** |
15 | * <!-- begin-user-doc --> |
16 | * A test case for the model object '<em><b>CPU State Calculator</b></em>'. |
17 | * <!-- end-user-doc --> |
18 | * @generated |
19 | */ |
20 | public class CPUStateCalculatorTest extends UnaryCalculatorTest { |
21 | |
22 | /** |
23 | * <!-- begin-user-doc --> |
24 | * <!-- end-user-doc --> |
25 | * @generated |
26 | */ |
27 | public static void main(String[] args) { |
28 | TestRunner.run(CPUStateCalculatorTest.class); |
29 | } |
30 | |
31 | /** |
32 | * Constructs a new CPU State Calculator test case with the given name. |
33 | * <!-- begin-user-doc --> |
34 | * <!-- end-user-doc --> |
35 | * @generated |
36 | */ |
37 | public CPUStateCalculatorTest(String name) { |
38 | super(name); |
39 | } |
40 | |
41 | /** |
42 | * Returns the fixture for this CPU State Calculator test case. |
43 | * <!-- begin-user-doc --> |
44 | * <!-- end-user-doc --> |
45 | * @generated |
46 | */ |
47 | @Override |
48 | protected CPUStateCalculator getFixture() { |
49 | return (CPUStateCalculator)fixture; |
50 | } |
51 | |
52 | /** |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @see junit.framework.TestCase#setUp() |
56 | * @generated |
57 | */ |
58 | @Override |
59 | protected void setUp() throws Exception { |
60 | setFixture(probespecFactory.eINSTANCE.createCPUStateCalculator()); |
61 | } |
62 | |
63 | /** |
64 | * <!-- begin-user-doc --> |
65 | * <!-- end-user-doc --> |
66 | * @see junit.framework.TestCase#tearDown() |
67 | * @generated |
68 | */ |
69 | @Override |
70 | protected void tearDown() throws Exception { |
71 | setFixture(null); |
72 | } |
73 | |
74 | } //CPUStateCalculatorTest |