This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 1_6
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-sandesha.git

commit f1a3463a80ac84c73e82cf499b1b61cf0e20b3e0
Author: Andreas Veithen <veit...@apache.org>
AuthorDate: Wed Dec 21 08:51:16 2011 +0000

    Merged r1221487 to the 1.6 branch.
---
 .../test/java/org/apache/sandesha2/SandeshaTestCase.java   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java 
b/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java
index ef4c199..2b361b0 100644
--- a/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java
+++ b/modules/tests/src/test/java/org/apache/sandesha2/SandeshaTestCase.java
@@ -233,15 +233,15 @@ public class SandeshaTestCase extends TestCase {
                boolean errorReported = false;
                String resultStr;
                
-               public boolean isComplete() {
+               public synchronized boolean isComplete() {
                        return completed;
                }
                
-               public boolean isErrorReported() {
+               public synchronized boolean isErrorReported() {
                        return errorReported;
                }
 
-               public String getResult () {
+               public synchronized String getResult () {
                        return resultStr;
                }
                
@@ -249,23 +249,23 @@ public class SandeshaTestCase extends TestCase {
                        this.name = name;
                }
                
-               public void onComplete() {
+               public synchronized void onComplete() {
                        completed = true;
                }
 
-               public void onMessage(MessageContext result) {
+               public synchronized void onMessage(MessageContext result) {
                        SOAPBody body = result.getEnvelope().getBody();
                        OMElement contents = body.getFirstElement();
                        this.resultStr = checkEchoOMBlock(contents);
                        System.out.println("TestCallback got text: '" + 
resultStr + "'");
                }
                
-               public void onFault(MessageContext result) {
+               public synchronized void onFault(MessageContext result) {
                        errorReported = true;
                        System.out.println("TestCallback got fault: " + 
result.getEnvelope());
                }
 
-               public void onError (Exception e) {
+               public synchronized void onError (Exception e) {
                        errorReported = true;
                        System.out.println("TestCallback got exception");
                        e.printStackTrace();

Reply via email to