Author: thilina
Date: Thu Sep 15 05:39:31 2005
New Revision: 289226

URL: http://svn.apache.org/viewcvs?rev=289226&view=rev
Log:
Fixing the Coordinator test case
moving context package

Added:
    webservices/kandula/trunk/java/test/org/apache/kandula/context/
    
webservices/kandula/trunk/java/test/org/apache/kandula/context/ActivityContextTest.java
Removed:
    webservices/kandula/trunk/java/test/org/apache/kandula/coordinator/context/
Modified:
    
webservices/kandula/trunk/java/src/org/apache/kandula/context/at/ATActivityContext.java
    
webservices/kandula/trunk/java/test/org/apache/kandula/coordinator/CoordinatorImplTest.java

Modified: 
webservices/kandula/trunk/java/src/org/apache/kandula/context/at/ATActivityContext.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/trunk/java/src/org/apache/kandula/context/at/ATActivityContext.java?rev=289226&r1=289225&r2=289226&view=diff
==============================================================================
--- 
webservices/kandula/trunk/java/src/org/apache/kandula/context/at/ATActivityContext.java
 (original)
+++ 
webservices/kandula/trunk/java/src/org/apache/kandula/context/at/ATActivityContext.java
 Thu Sep 15 05:39:31 2005
@@ -19,6 +19,7 @@
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.kandula.Constants;
 import org.apache.kandula.KandulaException;
+import org.apache.kandula.Status;
 import org.apache.kandula.context.ActivityContext;
 import org.apache.kandula.context.ActivityContextImpl;
 import org.apache.kandula.context.Participant;
@@ -60,6 +61,7 @@
      */
     public ATActivityContext() {
         super(Constants.WS_AT);
+        this.setStatus(Status.CoordinatorStatus.STATUS_ACTIVE);
         volatileParticipantsTable = new Hashtable();
         durableParticipantsTable = new Hashtable();
     }
@@ -72,6 +74,7 @@
         parentEPR = context.getRegistrationService();
 //        context.setRegistrationService(EndpointReferenceFactory.getInstance()
 //                .getRegistrationEndpoint());
+        this.setStatus(Status.CoordinatorStatus.STATUS_ACTIVE);
         volatileParticipantsTable = new Hashtable();
         durableParticipantsTable = new Hashtable();
         setCoordinationContext(context);

Added: 
webservices/kandula/trunk/java/test/org/apache/kandula/context/ActivityContextTest.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/trunk/java/test/org/apache/kandula/context/ActivityContextTest.java?rev=289226&view=auto
==============================================================================
--- 
webservices/kandula/trunk/java/test/org/apache/kandula/context/ActivityContextTest.java
 (added)
+++ 
webservices/kandula/trunk/java/test/org/apache/kandula/context/ActivityContextTest.java
 Thu Sep 15 05:39:31 2005
@@ -0,0 +1,50 @@
+/*
+ * Copyright  2004 The Apache Software Foundation.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *
+ */
+package org.apache.kandula.context;
+
+import junit.framework.TestCase;
+
+/**
+ * @author <a href="mailto:[EMAIL PROTECTED]"> Thilina Gunarathne </a>
+ */
+public class ActivityContextTest extends TestCase {
+
+    public void testGetActivityID() {
+        //TODO Implement getActivityID().
+    }
+
+    public void testAddParticipant() {
+        //TODO Implement addParticipant().
+    }
+
+    public void testGetStatus() {
+        //TODO Implement getStatus().
+    }
+
+    public void testSetStatus() {
+        //TODO Implement setStatus().
+    }
+
+    public void testLock() {
+        //TODO Implement lock().
+    }
+
+    public void testUnlock() {
+        //TODO Implement unlock().
+    }
+
+}

Modified: 
webservices/kandula/trunk/java/test/org/apache/kandula/coordinator/CoordinatorImplTest.java
URL: 
http://svn.apache.org/viewcvs/webservices/kandula/trunk/java/test/org/apache/kandula/coordinator/CoordinatorImplTest.java?rev=289226&r1=289225&r2=289226&view=diff
==============================================================================
--- 
webservices/kandula/trunk/java/test/org/apache/kandula/coordinator/CoordinatorImplTest.java
 (original)
+++ 
webservices/kandula/trunk/java/test/org/apache/kandula/coordinator/CoordinatorImplTest.java
 Thu Sep 15 05:39:31 2005
@@ -23,7 +23,6 @@
 import org.apache.kandula.context.ActivityContext;
 import org.apache.kandula.context.coordination.CoordinationContext;
 import org.apache.kandula.context.at.ATActivityContext;
-import org.xmlsoap.schemas.ws.x2003.x09.wscoor.CoordinationContextType;
 
 /**
  * @author <a href="mailto:[EMAIL PROTECTED]"> Thilina Gunarathne </a>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to