Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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