Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Bug 1308 - Unable to publish NodeUpdated message via NotificationService"
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
ConfigurationImplTest.java
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 85877ce11e78e48200c72c03ddb20340a6a7e74b..56fd3c568a5e2489c59a7172cfc9ad5b78b40713 100644
(file)
--- 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;
package org.opendaylight.controller.cluster.datastore;
+import com.typesafe.config.ConfigFactory;
import junit.framework.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
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;
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"));
}
assertTrue(memberShardNames.contains("people-1"));
assertTrue(memberShardNames.contains("cars-1"));
}
+
+ @Test
+ public void testReadConfigurationFromFile(){
+ File f = new File("./module-shards.conf");
+ ConfigFactory.parseFile(f);
+ }
}
}