Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-10-16 14:35:36 +0000
committerMarkus Tiede2014-10-16 14:35:43 +0000
commiteea8dd60ec8f4ed6e823faf153b9d54ba67308d1 (patch)
tree166dcb20c61f0e41b6b7703b2cafc8c779a9df9d /org.eclipse.jubula.client.api
parente806dce6b4176249d5851455dafa2fc3a63077b5 (diff)
downloadorg.eclipse.jubula.core-eea8dd60ec8f4ed6e823faf153b9d54ba67308d1.tar.gz
org.eclipse.jubula.core-eea8dd60ec8f4ed6e823faf153b9d54ba67308d1.tar.xz
org.eclipse.jubula.core-eea8dd60ec8f4ed6e823faf153b9d54ba67308d1.zip
Sprint task - result ok status introduced; first default mapping component test added; minor refactoring.
Diffstat (limited to 'org.eclipse.jubula.client.api')
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java5
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/AUTConnection.java3
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/AUTImpl.java1
-rw-r--r--org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/ResultImpl.java14
4 files changed, 22 insertions, 1 deletions
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java
index 2c82a706b..5d37d9a69 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/Result.java
@@ -27,4 +27,9 @@ public interface Result<T> {
* @return the CAP
*/
CAP getCAP();
+
+ /**
+ * @return wheter the CAP has been executed successfully or not
+ */
+ boolean isOK();
} \ No newline at end of file
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/AUTConnection.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/AUTConnection.java
index f66d8a246..f014ccc97 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/AUTConnection.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/AUTConnection.java
@@ -148,8 +148,9 @@ public class AUTConnection extends BaseAUTConnection {
throws NotConnectedException, ConnectionException,
CommunicationException {
sendKeyboardLayoutToAut();
- // TODO workaround for racing condition
+ // FIXME MT: workaround for racing condition
TimeUtil.delay(1000);
+ // The ITEs delay is - afaics - by default big enough to cover this
sendComponentSupportToAUT(technicalTypeMapping);
}
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/AUTImpl.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/AUTImpl.java
index 92abf1491..8336dfd6c 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/AUTImpl.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/AUTImpl.java
@@ -118,6 +118,7 @@ public class AUTImpl implements AUT {
CAPTestResponseMessage response =
(CAPTestResponseMessage) exchange;
processResponse(response, result);
+ result.setOK(true);
} else {
log.error("Unexpected response received: " //$NON-NLS-1$
+ String.valueOf(exchange));
diff --git a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/ResultImpl.java b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/ResultImpl.java
index 0f770e439..6f8f4860a 100644
--- a/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/ResultImpl.java
+++ b/org.eclipse.jubula.client.api/src/org/eclipse/jubula/client/internal/impl/ResultImpl.java
@@ -23,6 +23,8 @@ public class ResultImpl<T> implements Result<T> {
private T m_payload;
/** the cap */
private CAP m_cap;
+ /** the result flag */
+ private boolean m_isOK = false;
/**
* Constructor
@@ -46,4 +48,16 @@ public class ResultImpl<T> implements Result<T> {
public CAP getCAP() {
return m_cap;
}
+
+ /** {@inheritDoc} */
+ public boolean isOK() {
+ return m_isOK;
+ }
+
+ /**
+ * @param isOK the isOK to set
+ */
+ void setOK(boolean isOK) {
+ m_isOK = isOK;
+ }
} \ No newline at end of file

Back to the top