summaryrefslogtreecommitdiffstats
path: root/java/sca/itest/scopes
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/itest/scopes')
-rw-r--r--java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java b/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java
index 1f98343834..47d2d08a18 100644
--- a/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java
+++ b/java/sca/itest/scopes/src/test/java/org/apache/tuscany/sca/test/ScopeTestCase.java
@@ -65,8 +65,9 @@ public class ScopeTestCase {
StateVerifier moduleScopeService = node.getService(StateVerifier.class, "ModuleScopeComponent");
for (int i = 1; i <= iterations; i++) {
moduleScopeService.setState(i);
- if (!moduleScopeService.checkState(i))
+ if (!moduleScopeService.checkState(i)) {
fail("The module scope service lost its state on iteration " + i);
+ }
}
}
}
@@ -77,8 +78,9 @@ public class ScopeTestCase {
StateVerifier requestScopeService = node.getService(StateVerifier.class, "RequestScopeComponent");
for (int i = 1; i <= iterations; i++) {
requestScopeService.setState(i);
- if (!requestScopeService.checkState(i))
+ if (!requestScopeService.checkState(i)) {
fail("The request scope service lost its state on iteration " + i);
+ }
}
}
}