Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2015-03-11 21:20:32 +0000
committerMarkus Tiede2015-03-11 21:20:32 +0000
commita43f748bfc803aa5e18c72f5bf0ffe818dd41725 (patch)
treeea276a5ffc1e0bb2fd16333d22bb7e9d0af24340 /org.eclipse.jubula.examples.api.adder.rcp
parentc61880b73a3a5be77575687f3d8892361fd9262a (diff)
downloadorg.eclipse.jubula.core-a43f748bfc803aa5e18c72f5bf0ffe818dd41725.tar.gz
org.eclipse.jubula.core-a43f748bfc803aa5e18c72f5bf0ffe818dd41725.tar.xz
org.eclipse.jubula.core-a43f748bfc803aa5e18c72f5bf0ffe818dd41725.zip
Non-sprint - re-arranged methods within self-contained demo class for better readability.
Diffstat (limited to 'org.eclipse.jubula.examples.api.adder.rcp')
-rw-r--r--org.eclipse.jubula.examples.api.adder.rcp/shared/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/org.eclipse.jubula.examples.api.adder.rcp/shared/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java b/org.eclipse.jubula.examples.api.adder.rcp/shared/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java
index d6547f028..a2856a622 100644
--- a/org.eclipse.jubula.examples.api.adder.rcp/shared/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java
+++ b/org.eclipse.jubula.examples.api.adder.rcp/shared/src/org/eclipse/jubula/examples/api/adder/rcp/SimpleAdder.java
@@ -104,21 +104,6 @@ public class SimpleAdder {
}
}
- /**
- * @return an AUT-Agent instance
- */
- protected AUTAgent getAUTAgentInstance() {
- return MakeR.createAUTAgent(AGENT_HOST, AGENT_PORT);
- }
-
- /** cleanup */
- @After
- public void tearDown() throws Exception {
- m_aut.disconnect();
- m_agent.stopAUT(m_aut.getIdentifier());
- m_agent.disconnect();
- }
-
/** the actual test method */
@Test(expected = CheckFailedException.class)
public void testTestFirstSimpleAdderSteps() throws Exception {
@@ -144,4 +129,19 @@ public class SimpleAdder {
Assert.assertTrue(results.size() == 15);
}
}
+
+ /** cleanup */
+ @After
+ public void tearDown() throws Exception {
+ m_aut.disconnect();
+ m_agent.stopAUT(m_aut.getIdentifier());
+ m_agent.disconnect();
+ }
+
+ /**
+ * @return an AUT-Agent instance
+ */
+ protected AUTAgent getAUTAgentInstance() {
+ return MakeR.createAUTAgent(AGENT_HOST, AGENT_PORT);
+ }
} \ No newline at end of file

Back to the top