usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [2/5] git commit: Rename getMapManager() to createMapManager() for consistency with other CP managers.
Date Tue, 07 Oct 2014 13:28:03 GMT
Rename getMapManager() to createMapManager() for consistency with other CP managers.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/6ea99402
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/6ea99402
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/6ea99402

Branch: refs/heads/two-dot-o
Commit: 6ea99402f75f86a19fd206edd8dc46a42b454c65
Parents: 7752cb9
Author: Dave Johnson <dmjohnson@apigee.com>
Authored: Tue Oct 7 07:21:19 2014 -0400
Committer: Dave Johnson <dmjohnson@apigee.com>
Committed: Tue Oct 7 07:21:19 2014 -0400

----------------------------------------------------------------------
 .../persistence/map/MapManagerFactory.java      |  2 +-
 .../persistence/map/MapManagerTest.java         | 21 ++++++++++----------
 2 files changed, 11 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6ea99402/stack/corepersistence/map/src/main/java/org/apache/usergrid/persistence/map/MapManagerFactory.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/map/src/main/java/org/apache/usergrid/persistence/map/MapManagerFactory.java
b/stack/corepersistence/map/src/main/java/org/apache/usergrid/persistence/map/MapManagerFactory.java
index 1575765..a60cdfc 100644
--- a/stack/corepersistence/map/src/main/java/org/apache/usergrid/persistence/map/MapManagerFactory.java
+++ b/stack/corepersistence/map/src/main/java/org/apache/usergrid/persistence/map/MapManagerFactory.java
@@ -26,5 +26,5 @@ public interface MapManagerFactory {
     /**
      * Get the map manager
      */
-    public MapManager getMapManager( final MapScope scope );
+    public MapManager createMapManager( final MapScope scope );
 }

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6ea99402/stack/corepersistence/map/src/test/java/org/apache/usergrid/persistence/map/MapManagerTest.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/map/src/test/java/org/apache/usergrid/persistence/map/MapManagerTest.java
b/stack/corepersistence/map/src/test/java/org/apache/usergrid/persistence/map/MapManagerTest.java
index 09942a5..f1cc519 100644
--- a/stack/corepersistence/map/src/test/java/org/apache/usergrid/persistence/map/MapManagerTest.java
+++ b/stack/corepersistence/map/src/test/java/org/apache/usergrid/persistence/map/MapManagerTest.java
@@ -20,7 +20,6 @@
 package org.apache.usergrid.persistence.map;
 
 
-import org.apache.usergrid.persistence.collection.UUIDComparatorTest;
 import org.jukito.UseModules;
 import org.junit.Before;
 import org.junit.Rule;
@@ -65,7 +64,7 @@ public class MapManagerTest {
 
     @Test
     public void writeReadString() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String key = "key";
         final String value = "value";
@@ -79,7 +78,7 @@ public class MapManagerTest {
 
     @Test
     public void writeReadUUID() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String key = "key";
         final UUID value = UUID.randomUUID();
@@ -93,7 +92,7 @@ public class MapManagerTest {
 
     @Test
     public void writeReadLong() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String key = "key";
         final Long value = 1234L;
@@ -108,7 +107,7 @@ public class MapManagerTest {
 
     @Test
     public void readMissingEntry() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String returned = mm.getString( "key" );
 
@@ -126,7 +125,7 @@ public class MapManagerTest {
 
     @Test
     public void deleteString() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String key = "key";
         final String value = "value";
@@ -146,7 +145,7 @@ public class MapManagerTest {
 
     @Test
     public void deleteUUID() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String key = "key";
         final UUID value = UUID.randomUUID();
@@ -166,7 +165,7 @@ public class MapManagerTest {
 
     @Test
     public void deleteLong() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         final String key = "key";
         final Long value = 1L;
@@ -187,20 +186,20 @@ public class MapManagerTest {
 
     @Test( expected = NullPointerException.class )
     public void nullInputString() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         mm.putString( null, null );
     }
 
     @Test( expected = NullPointerException.class )
     public void nullInputLong() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         mm.putLong( null, null );
     }
     @Test( expected = NullPointerException.class )
      public void nullInputUUID() {
-        MapManager mm = mmf.getMapManager( this.scope );
+        MapManager mm = mmf.createMapManager( this.scope );
 
         mm.putUuid( null, null );
     }


Mime
View raw message