X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FConfigurationImplTest.java;h=56fd3c568a5e2489c59a7172cfc9ad5b78b40713;hp=85877ce11e78e48200c72c03ddb20340a6a7e74b;hb=83140d53722ad77dd804f7b4d761a673110b83b3;hpb=9340a64d067473032111bd8c3341ea6855cd9e4a diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ConfigurationImplTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ConfigurationImplTest.java index 85877ce11e..56fd3c568a 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ConfigurationImplTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ConfigurationImplTest.java @@ -1,9 +1,11 @@ package org.opendaylight.controller.cluster.datastore; +import com.typesafe.config.ConfigFactory; import junit.framework.Assert; import org.junit.BeforeClass; import org.junit.Test; +import java.io.File; import java.util.List; import static org.junit.Assert.assertTrue; @@ -30,4 +32,10 @@ public class ConfigurationImplTest { assertTrue(memberShardNames.contains("people-1")); assertTrue(memberShardNames.contains("cars-1")); } + + @Test + public void testReadConfigurationFromFile(){ + File f = new File("./module-shards.conf"); + ConfigFactory.parseFile(f); + } }