Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2015-02-12 20:42:41 +0000
committerMarkus Tiede2015-02-12 20:42:41 +0000
commita14bea64a5ffbd6a8b4c06ce3826bf686043a20a (patch)
tree800ef977b4e63ff8cc92222f42795e3c05049888 /org.eclipse.jubula.examples.api.adder.rcp
parent4c72b84514213c5eac4d8d22c5d8f94f22d49554 (diff)
downloadorg.eclipse.jubula.core-a14bea64a5ffbd6a8b4c06ce3826bf686043a20a.tar.gz
org.eclipse.jubula.core-a14bea64a5ffbd6a8b4c06ce3826bf686043a20a.tar.xz
org.eclipse.jubula.core-a14bea64a5ffbd6a8b4c06ce3826bf686043a20a.zip
Non-sprint task - plug-in JUnit test launch configuration and target definition added - embedded AUT-Agent usage (experimental).
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.java11
1 files changed, 9 insertions, 2 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 ddf7790a6..d6547f028 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2014 BREDEX GmbH.
+ * Copyright (c) 2015 BREDEX GmbH.
* 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
@@ -85,7 +85,7 @@ public class SimpleAdder {
/** prepare */
@Before
public void setUp() throws Exception {
- m_agent = MakeR.createAUTAgent(AGENT_HOST, AGENT_PORT);
+ m_agent = getAUTAgentInstance();
m_agent.connect();
final String autID = "SimpleAdder_rcp"; //$NON-NLS-1$
@@ -104,6 +104,13 @@ 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 {

Back to the top