1 package org.opendaylight.controller.cluster.datastore;
3 import junit.framework.Assert;
4 import org.junit.BeforeClass;
9 import static org.junit.Assert.assertTrue;
11 public class ConfigurationImplTest {
13 private static ConfigurationImpl configuration;
16 public static void staticSetup(){
17 configuration = new ConfigurationImpl("module-shards.conf", "modules.conf");
21 public void testConstructor(){
22 Assert.assertNotNull(configuration);
26 public void testGetMemberShardNames(){
27 List<String> memberShardNames =
28 configuration.getMemberShardNames("member-1");
30 assertTrue(memberShardNames.contains("people-1"));
31 assertTrue(memberShardNames.contains("cars-1"));