airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1374377 - /incubator/airavata/trunk/modules/commons/registry-api/src/test/java/org/apache/airavata/registry/api/impl/JCRRegistryDeleteTest.java
Date Fri, 17 Aug 2012 17:43:28 GMT
Author: lahiru
Date: Fri Aug 17 17:43:28 2012
New Revision: 1374377

URL: http://svn.apache.org/viewvc?rev=1374377&view=rev
Log:
fixing build error.

Modified:
    incubator/airavata/trunk/modules/commons/registry-api/src/test/java/org/apache/airavata/registry/api/impl/JCRRegistryDeleteTest.java

Modified: incubator/airavata/trunk/modules/commons/registry-api/src/test/java/org/apache/airavata/registry/api/impl/JCRRegistryDeleteTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/registry-api/src/test/java/org/apache/airavata/registry/api/impl/JCRRegistryDeleteTest.java?rev=1374377&r1=1374376&r2=1374377&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/registry-api/src/test/java/org/apache/airavata/registry/api/impl/JCRRegistryDeleteTest.java
(original)
+++ incubator/airavata/trunk/modules/commons/registry-api/src/test/java/org/apache/airavata/registry/api/impl/JCRRegistryDeleteTest.java
Fri Aug 17 17:43:28 2012
@@ -36,6 +36,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
+import static org.junit.Assert.assertNull;
 import static org.junit.Assert.fail;
 
 public class JCRRegistryDeleteTest {
@@ -113,7 +114,7 @@ public class JCRRegistryDeleteTest {
             jcrRegistry.saveServiceDescription(serv);
 
             jcrRegistry.deleteServiceDescription(serv.getType().getName());
-            jcrRegistry.getServiceDescription(serv.getType().getName());
+            assertNull(jcrRegistry.getServiceDescription(serv.getType().getName()));
             jcrRegistry.closeConnection();
             jcrRegistry.getSession().logout();
         } catch (Exception e) {
@@ -126,7 +127,6 @@ public class JCRRegistryDeleteTest {
             IOUtil.deleteDirectory(new File((new File(".")).getAbsolutePath() + File.separator
+ "target" + File.separator + "jackrabbit2"));
             return;
         }
-        Assert.assertTrue(false);
     }
 
 



Mime
View raw message