fix unit test
authorOlivier Lamy <olamy@apache.org>
Mon, 10 Jun 2013 07:58:58 +0000 (07:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 10 Jun 2013 07:58:58 +0000 (07:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/sandbox/trunk@1491363 13f79535-47bb-0310-9956-ffa450edef68

metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/CassandraMetadataRepositoryTest.java
metadata-store-cassandra/src/test/java/org/apache/archiva/metadata/repository/cassandra/RepositoriesNamespaceTest.java

index 6be058f..bdf303f 100644 (file)
@@ -70,7 +70,7 @@ public class CassandraMetadataRepositoryTest
         this.cmr = new CassandraMetadataRepository( factories, null, cassandraEntityManagerFactory.getKeyspace() );
         this.repository = this.cmr;
 
-        //clearReposAndNamespace();
+        clearReposAndNamespace();
     }
 
 
index eaf819a..2edffd9 100644 (file)
@@ -91,7 +91,7 @@ public class RepositoriesNamespaceTest
             Assertions.assertThat( cmr.getRepositories() ).isNotEmpty().hasSize( 1 );
             Assertions.assertThat( cmr.getNamespaces( "release" ) ).isNotEmpty().hasSize( 1 );
 
-            n = cmr.getNamespaceEntityManager().get( "org" + "-" + "release" );
+            n = cmr.getNamespaceEntityManager().get( "release" + "-" + "org" );
 
             Assertions.assertThat( n ).isNotNull();
             Assertions.assertThat( n.getRepository() ).isNotNull();