Reduce test class visibility 13/37013/4
authorRobert Varga <rovarga@cisco.com>
Fri, 1 Apr 2016 14:37:49 +0000 (16:37 +0200)
committerRobert Varga <rovarga@cisco.com>
Sat, 2 Apr 2016 13:23:33 +0000 (15:23 +0200)
These classes are not used anywhere else, make that explicit by making them
private.

Change-Id: Ic6549f1b5f6c6df20cc54e4162569363382fe305
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShardTest.java

index 5c822ab..01134b1 100644 (file)
@@ -825,7 +825,7 @@ public class EntityOwnershipShardTest extends AbstractEntityOwnershipTest {
                 type("operational" + NEXT_SHARD_NUM.getAndIncrement()).build();
     }
 
-    public static class TestEntityOwnershipShard extends EntityOwnershipShard {
+    private static class TestEntityOwnershipShard extends EntityOwnershipShard {
 
         TestEntityOwnershipShard(ShardIdentifier name, Map<String, String> peerAddresses,
                 DatastoreContext datastoreContext) {
@@ -841,7 +841,7 @@ public class EntityOwnershipShardTest extends AbstractEntityOwnershipTest {
         }
     }
 
-    public static class MockFollower extends UntypedActor {
+    private static class MockFollower extends UntypedActor {
         volatile boolean grantVote;
         volatile boolean dropAppendEntries;
         private final String myId;
@@ -958,7 +958,7 @@ public class EntityOwnershipShardTest extends AbstractEntityOwnershipTest {
         verifyOwner(shard, ENTITY_TYPE, ENTITY_ID1, LOCAL_MEMBER_NAME);
     }
 
-    public static class MockLeader extends UntypedActor {
+    private static class MockLeader extends UntypedActor {
         volatile CountDownLatch modificationsReceived = new CountDownLatch(1);
         List<Modification> receivedModifications = new ArrayList<>();
         volatile boolean sendReply = true;