Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / sal-netconf-connector / src / test / java / org / opendaylight / netconf / sal / connect / netconf / LibraryModulesSchemasTest.java
index 12345671b49010a6815c1a392f122689020fb5dd..7a8846db832f2de9ce88cc9fcb710d36734662e5 100644 (file)
@@ -15,6 +15,7 @@ import java.util.Collections;
 import java.util.Map;
 import org.junit.Assert;
 import org.junit.Test;
+import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.model.repo.api.RevisionSourceIdentifier;
 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
 
@@ -41,15 +42,15 @@ public class LibraryModulesSchemasTest {
         Assert.assertThat(resolvedModulesSchema.size(), is(3));
 
         Assert.assertTrue(resolvedModulesSchema.containsKey(RevisionSourceIdentifier.create("module-with-revision",
-                "2014-04-08")));
+                Revision.of("2014-04-08"))));
         Assert.assertThat(resolvedModulesSchema.get(
-                RevisionSourceIdentifier.create("module-with-revision", "2014-04-08")),
+                RevisionSourceIdentifier.create("module-with-revision", Revision.of("2014-04-08"))),
                 is(new URL("http://localhost:8181/yanglib/schemas/module-with-revision/2014-04-08")));
 
         Assert.assertTrue(resolvedModulesSchema.containsKey(
-                RevisionSourceIdentifier.create("another-module-with-revision", "2013-10-21")));
+                RevisionSourceIdentifier.create("another-module-with-revision", Revision.of("2013-10-21"))));
         Assert.assertThat(resolvedModulesSchema.get(
-                RevisionSourceIdentifier.create("another-module-with-revision", "2013-10-21")),
+                RevisionSourceIdentifier.create("another-module-with-revision", Revision.of("2013-10-21"))),
                 is(new URL("http://localhost:8181/yanglib/schemas/another-module-with-revision/2013-10-21")));
 
         Assert.assertTrue(resolvedModulesSchema.containsKey(