Make test methods static 72/45772/2
authorRobert Varga <rovarga@cisco.com>
Sun, 18 Sep 2016 10:23:27 +0000 (12:23 +0200)
committerRobert Varga <rovarga@cisco.com>
Sun, 18 Sep 2016 15:39:55 +0000 (17:39 +0200)
Test data construction can be static.

Change-Id: Ie20b88470d9dd62657f9e41b3eaf6904dc92e62d
Signed-off-by: Robert Varga <rovarga@cisco.com>
dom/mdsal-dom-broker/src/test/java/org/opendaylight/mdsal/dom/broker/ShardedDOMDataTreeTest.java

index 6e5a41e7d17f442c6085790657a1a9d38610da7a..a1d063cb288e9f8a0eeb4d783e68106967c59751 100644 (file)
@@ -246,7 +246,7 @@ public class ShardedDOMDataTreeTest {
 
     }
 
-    private Collection<MapEntryNode> createInnerListMapEntries(int amount, String valuePrefix) {
+    private static Collection<MapEntryNode> createInnerListMapEntries(final int amount, final String valuePrefix) {
         final Collection<MapEntryNode> ret = new ArrayList<>();
         for (int i = 0; i < amount; i++) {
             ret.add(ImmutableNodes.mapEntryBuilder()
@@ -316,7 +316,7 @@ public class ShardedDOMDataTreeTest {
         assertNotNull(innerShardCursor);
     }
 
-    private ContainerNode createCrossShardContainer() {
+    private static ContainerNode createCrossShardContainer() {
         final LeafNode<String> shardedValue1 =
                 ImmutableLeafNodeBuilder.<String>create().withNodeIdentifier(new NodeIdentifier(
                         TestModel.SHARDED_VALUE_1)).withValue("sharded value 1").build();