BUG-4688: switch revisions from Date to Revision
[yangtools.git] / yang / yang-model-util / src / test / java / org / opendaylight / yangtools / yang / model / util / type / BitImplTest.java
index 0310c2bce6fde2fed6f58167ae1b2ec221d85685..ee31351087f44dcb29a9f010a9575fd7ce19188f 100644 (file)
@@ -13,9 +13,9 @@ import static org.junit.Assert.assertFalse;
 
 import java.net.URI;
 import java.net.URISyntaxException;
-import java.util.Date;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
 import org.opendaylight.yangtools.yang.model.api.Status;
 
@@ -32,12 +32,12 @@ public class BitImplTest {
         final URI uriB1 = new URI("some:uriB1");
         final URI uriB2 = new URI("some:uriB2");
 
-        QName qnameA1 = QName.create(uriA1, new Date(6000000), "some nameA1");
-        QName qnameA2 = QName.create(uriA2, new Date(7000000), "some nameA2");
+        QName qnameA1 = QName.create(uriA1, Revision.valueOf("2000-01-01"), "some nameA1");
+        QName qnameA2 = QName.create(uriA2, Revision.valueOf("2002-01-01"), "some nameA2");
         SchemaPath schemaPathA = SchemaPath.create(true, qnameA1, qnameA2);
 
-        final QName qnameB1 = QName.create(uriB1, new Date(6000000), "some nameB1");
-        final QName qnameB2 = QName.create(uriB2, new Date(7000000), "some nameB2");
+        final QName qnameB1 = QName.create(uriB1, Revision.valueOf("2000-01-01"), "some nameB1");
+        final QName qnameB2 = QName.create(uriB2, Revision.valueOf("2002-01-01"), "some nameB2");
         final SchemaPath schemaPathB = SchemaPath.create(true, qnameB1, qnameB2);
 
         BitImpl biA = new BitImpl(schemaPathA, 55L, "description", "reference", Status.CURRENT, emptyList());