Merge "Fix the build errors due to the class change of InstanceIdentifier to YangInst...
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / ConfigurationImplTest.java
1 package org.opendaylight.controller.cluster.datastore;
2
3 import junit.framework.Assert;
4 import org.junit.BeforeClass;
5 import org.junit.Test;
6
7 import java.util.List;
8
9 import static org.junit.Assert.assertTrue;
10
11 public class ConfigurationImplTest {
12
13     private static ConfigurationImpl configuration;
14
15     @BeforeClass
16     public static void staticSetup(){
17         configuration = new ConfigurationImpl("module-shards.conf", "modules.conf");
18     }
19
20     @Test
21     public void testConstructor(){
22         Assert.assertNotNull(configuration);
23     }
24
25     @Test
26     public void testGetMemberShardNames(){
27         List<String> memberShardNames =
28             configuration.getMemberShardNames("member-1");
29
30         assertTrue(memberShardNames.contains("people-1"));
31         assertTrue(memberShardNames.contains("cars-1"));
32     }
33 }