airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [13/19] airavata git commit: updating AiravataServerHandlerTest
Date Fri, 01 May 2015 00:56:09 GMT
updating AiravataServerHandlerTest


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/0b572c28
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/0b572c28
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/0b572c28

Branch: refs/heads/master
Commit: 0b572c28208f0d185cafb9f15fd617752f2517d9
Parents: 7bf5fc1
Author: Supun Nakandala <supun.nakandala@gmail.com>
Authored: Mon Apr 27 22:53:51 2015 +0530
Committer: Supun Nakandala <supun.nakandala@gmail.com>
Committed: Mon Apr 27 22:53:51 2015 +0530

----------------------------------------------------------------------
 .../api/server/handler/AiravataServerHandlerTest.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/0b572c28/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java
b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java
index 799f8e9..1094563 100644
--- a/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java
+++ b/airavata-api/airavata-api-server/src/test/java/org/apache/airavata/api/server/handler/AiravataServerHandlerTest.java
@@ -44,7 +44,7 @@ public class AiravataServerHandlerTest {
     private final static Logger logger = LoggerFactory.getLogger(AiravataServerHandlerTest.class);
 
     private static AiravataServerHandler airavataServerHandler;
-    private static String gatewayId = "default";
+    private static String gatewayId = "php_reference_gateway";
 
     @BeforeClass
     public static void setupBeforeClass() throws Exception{
@@ -272,7 +272,7 @@ public class AiravataServerHandlerTest {
             ExperimentState experimentState = ExperimentState.findByValue(0);
             results = airavataServerHandler.searchExperimentsByStatus(
                     gatewayId, "TestUser" + TAG, experimentState);
-            Assert.assertTrue(results.size() > 0);
+            Assert.assertTrue(results.size() == 3);
             //with pagination
             results = airavataServerHandler.searchExperimentsByStatusWithPagination(
                     gatewayId, "TestUser" + TAG, experimentState, 2, 0);
@@ -281,7 +281,7 @@ public class AiravataServerHandlerTest {
             //searching based on application
             results = airavataServerHandler.searchExperimentsByApplication(
                     gatewayId, "TestUser" + TAG, "Ech");
-            Assert.assertTrue(results.size() > 0);
+            Assert.assertTrue(results.size() == 3);
             //with pagination
             results = airavataServerHandler.searchExperimentsByApplicationWithPagination(
                     gatewayId, "TestUser" + TAG, "Ech", 2, 0);
@@ -290,7 +290,7 @@ public class AiravataServerHandlerTest {
             //searching experiments by description
             results = airavataServerHandler.searchExperimentsByDesc(
                     gatewayId, "TestUser" + TAG, "exp");
-            Assert.assertTrue(results.size() > 0);
+            Assert.assertTrue(results.size() == 3);
             //with pagination
             results = airavataServerHandler.searchExperimentsByDescWithPagination(
                     gatewayId, "TestUser" + TAG, "exp", 2, 0);


Mime
View raw message