[wsas-java-dev] svn commit r9739 - in branches/wsas/java/2.1/wsas/java: . modules/admin/test/org/wso2/wsas/admin/throttle

svn at wso2.org svn at wso2.org
Tue Nov 13 10:28:42 PST 2007


Author: indika
Date: Tue Nov 13 10:28:35 2007
New Revision: 9739

Modified:
   branches/wsas/java/2.1/wsas/java/modules/admin/test/org/wso2/wsas/admin/throttle/ThrottleTest.java
   branches/wsas/java/2.1/wsas/java/pom.xml
Log:
change the pom and testcase according to throttle changes  


Modified: branches/wsas/java/2.1/wsas/java/modules/admin/test/org/wso2/wsas/admin/throttle/ThrottleTest.java
==============================================================================
--- branches/wsas/java/2.1/wsas/java/modules/admin/test/org/wso2/wsas/admin/throttle/ThrottleTest.java	(original)
+++ branches/wsas/java/2.1/wsas/java/modules/admin/test/org/wso2/wsas/admin/throttle/ThrottleTest.java	Tue Nov 13 10:28:35 2007
@@ -33,7 +33,7 @@
 public class ThrottleTest extends AbstractTestCase {
 
     public static final String MESSAGE =
-            "You cannot access this service since you have exceeded the allocated quota.";
+            "exceeded";
 
     public void testEchoXMLASync() throws Exception {
 
@@ -55,13 +55,13 @@
             } catch (Exception e) {
                 System.out.println("some error i == " + i);
                 if (i == 6) {
-                    assertTrue(e.getMessage().indexOf(MESSAGE) == 0);
+                    assertTrue(e.getMessage().indexOf(MESSAGE) > 0);
                 }
                 if (i == 7) {
-                    assertTrue(e.getMessage().indexOf(MESSAGE) == 0);
+                    assertTrue(e.getMessage().indexOf(MESSAGE) > 0);
                 }
                 if (i == 8) {
-                    assertTrue(e.getMessage().indexOf(MESSAGE) == 0);
+                    assertTrue(e.getMessage().indexOf(MESSAGE) > 0);
                 }
             }
         }

Modified: branches/wsas/java/2.1/wsas/java/pom.xml
==============================================================================
--- branches/wsas/java/2.1/wsas/java/pom.xml	(original)
+++ branches/wsas/java/2.1/wsas/java/pom.xml	Tue Nov 13 10:28:35 2007
@@ -980,20 +980,26 @@
             <artifactId>wso2statistics</artifactId>
             <version>${wso2statistics.version}</version>
         </dependency>
-        <!-- Throttle mar -->
+        <!-- Throttle jar -->
         <dependency>
             <groupId>org.wso2.throttle</groupId>
-            <artifactId>wso2throttle</artifactId>
+            <artifactId>wso2throttle-core</artifactId>
             <version>${wso2throttle.version}</version>
-            <type>mar</type>
         </dependency>
-        <!-- Throttle aar only with testing scope-->
+        <!-- Throttle mar -->
         <dependency>
             <groupId>org.wso2.throttle</groupId>
             <artifactId>wso2throttle</artifactId>
             <version>${wso2throttle.version}</version>
-            <scope>test</scope>
+            <type>mar</type>
         </dependency>
+        <!-- Throttle aar only with testing scope-->
+        <!--<dependency>-->
+            <!--<groupId>org.wso2.throttle</groupId>-->
+            <!--<artifactId>wso2throttle</artifactId>-->
+            <!--<version>${wso2throttle.version}</version>-->
+            <!--<scope>test</scope>-->
+        <!--</dependency>-->
         <dependency>
             <groupId>org.wso2.tracer</groupId>
             <artifactId>wso2tracer</artifactId>




More information about the Wsas-java-dev mailing list