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.ProbeSet; |
10 | import de.uka.ipd.sdq.probespec.probespecFactory; |
11 | |
12 | import junit.framework.TestCase; |
13 | |
14 | import junit.textui.TestRunner; |
15 | |
16 | /** |
17 | * <!-- begin-user-doc --> |
18 | * A test case for the model object '<em><b>Probe Set</b></em>'. |
19 | * <!-- end-user-doc --> |
20 | * @generated |
21 | */ |
22 | public class ProbeSetTest extends TestCase { |
23 | |
24 | /** |
25 | * The fixture for this Probe Set test case. |
26 | * <!-- begin-user-doc --> |
27 | * <!-- end-user-doc --> |
28 | * @generated |
29 | */ |
30 | protected ProbeSet fixture = null; |
31 | |
32 | /** |
33 | * <!-- begin-user-doc --> |
34 | * <!-- end-user-doc --> |
35 | * @generated |
36 | */ |
37 | public static void main(String[] args) { |
38 | TestRunner.run(ProbeSetTest.class); |
39 | } |
40 | |
41 | /** |
42 | * Constructs a new Probe Set test case with the given name. |
43 | * <!-- begin-user-doc --> |
44 | * <!-- end-user-doc --> |
45 | * @generated |
46 | */ |
47 | public ProbeSetTest(String name) { |
48 | super(name); |
49 | } |
50 | |
51 | /** |
52 | * Sets the fixture for this Probe Set test case. |
53 | * <!-- begin-user-doc --> |
54 | * <!-- end-user-doc --> |
55 | * @generated |
56 | */ |
57 | protected void setFixture(ProbeSet fixture) { |
58 | this.fixture = fixture; |
59 | } |
60 | |
61 | /** |
62 | * Returns the fixture for this Probe Set test case. |
63 | * <!-- begin-user-doc --> |
64 | * <!-- end-user-doc --> |
65 | * @generated |
66 | */ |
67 | protected ProbeSet getFixture() { |
68 | return fixture; |
69 | } |
70 | |
71 | /** |
72 | * <!-- begin-user-doc --> |
73 | * <!-- end-user-doc --> |
74 | * @see junit.framework.TestCase#setUp() |
75 | * @generated |
76 | */ |
77 | @Override |
78 | protected void setUp() throws Exception { |
79 | setFixture(probespecFactory.eINSTANCE.createProbeSet()); |
80 | } |
81 | |
82 | /** |
83 | * <!-- begin-user-doc --> |
84 | * <!-- end-user-doc --> |
85 | * @see junit.framework.TestCase#tearDown() |
86 | * @generated |
87 | */ |
88 | @Override |
89 | protected void tearDown() throws Exception { |
90 | setFixture(null); |
91 | } |
92 | |
93 | } //ProbeSetTest |