blob: 438de40c39ce74b86bae177ee3defa934b6f516c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/*
* Copyright (c) 2003, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - initial API and implementation
*
* $Id: ReadVariableActionTest.java,v 1.3 2006/05/29 17:27:34 khussey Exp $
*/
package org.eclipse.uml2.tests;
import junit.textui.TestRunner;
import org.eclipse.uml2.ReadVariableAction;
import org.eclipse.uml2.UML2Factory;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Read Variable Action</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class ReadVariableActionTest extends VariableActionTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final String copyright = "Copyright (c) IBM Corporation and others."; //$NON-NLS-1$
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(ReadVariableActionTest.class);
}
/**
* Constructs a new Read Variable Action test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ReadVariableActionTest(String name) {
super(name);
}
/**
* Returns the fixture for this Read Variable Action test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
private ReadVariableAction getFixture() {
return (ReadVariableAction)fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated
*/
protected void setUp() throws Exception {
setFixture(UML2Factory.eINSTANCE.createReadVariableAction());
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
protected void tearDown() throws Exception {
setFixture(null);
}
public void testGetOutputs() {
super.testGetOutputs();
assertTrue(getFixture().getOutputs().contains(getFixture().getResult()));
}
/* (non-Javadoc)
* @see org.eclipse.uml2.impl.tests.ActionImplTest#setUpOutputs()
*/
protected void setUpOutputs() {
super.setUpOutputs();
getFixture().setResult(UML2Factory.eINSTANCE.createOutputPin());
}
} //ReadVariableActionImplTest
|