BUG-2138: Create DistributedShardFrontend
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / shardstrategy / ModuleShardStrategyTest.java
index b895b75fcde1ee7421b324492319c59d0bfc6d93..9ec28431e1be2437c055a70293914cf6e0827974 100644 (file)
@@ -1,12 +1,21 @@
+/*
+ * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.opendaylight.controller.cluster.datastore.shardstrategy;
 
 import static org.junit.Assert.assertEquals;
+
 import org.junit.BeforeClass;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
-import org.opendaylight.controller.cluster.datastore.Configuration;
-import org.opendaylight.controller.cluster.datastore.ConfigurationImpl;
+import org.opendaylight.controller.cluster.datastore.config.Configuration;
+import org.opendaylight.controller.cluster.datastore.config.ConfigurationImpl;
 import org.opendaylight.controller.md.cluster.datastore.model.CarsModel;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
@@ -18,7 +27,7 @@ public class ModuleShardStrategyTest {
     private static Configuration configuration;
 
     @BeforeClass
-    public static void setUpClass(){
+    public static void setUpClass() {
         configuration = new ConfigurationImpl("module-shards.conf", "modules.conf");
     }
 
@@ -35,11 +44,11 @@ public class ModuleShardStrategyTest {
 
     @Test
     public void testFindShardWhenModuleConfigurationPresentInModulesButMissingInModuleShards() {
+        final QName baseQName = QName.create(
+                "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test:missing", "2014-03-13",
+                "missing");
 
-        final QName BASE_QNAME = QName.create("urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test:missing", "2014-03-13",
-            "missing");
-
-        final YangInstanceIdentifier BASE_PATH = YangInstanceIdentifier.of(BASE_QNAME);
+        final YangInstanceIdentifier BASE_PATH = YangInstanceIdentifier.of(baseQName);
 
         ModuleShardStrategy moduleShardStrategy =
             new ModuleShardStrategy("missing", configuration);