X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Futils%2Fparser%2FParserFieldsParameterTest.java;h=d6ee71d46c74dccd5f3c1f90804dc18d385ea06f;hb=c8f61b164f0515cccc8d21f6b9c5a279be818ae6;hp=7b6f1448515b68fe5ab435997fa7ab88cd8ed109;hpb=c428fcf626e499334cde793529ecb0e97a522942;p=netconf.git diff --git a/restconf/sal-rest-connector/src/test/java/org/opendaylight/restconf/utils/parser/ParserFieldsParameterTest.java b/restconf/sal-rest-connector/src/test/java/org/opendaylight/restconf/utils/parser/ParserFieldsParameterTest.java index 7b6f144851..d6ee71d46c 100644 --- a/restconf/sal-rest-connector/src/test/java/org/opendaylight/restconf/utils/parser/ParserFieldsParameterTest.java +++ b/restconf/sal-rest-connector/src/test/java/org/opendaylight/restconf/utils/parser/ParserFieldsParameterTest.java @@ -14,7 +14,6 @@ import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.net.URI; -import java.text.SimpleDateFormat; import java.util.List; import java.util.Set; import org.junit.Before; @@ -29,6 +28,7 @@ import org.opendaylight.netconf.sal.restconf.impl.RestconfError.ErrorTag; import org.opendaylight.netconf.sal.restconf.impl.RestconfError.ErrorType; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.common.QNameModule; +import org.opendaylight.yangtools.yang.common.SimpleDateFormatUtil; import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode; import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode; import org.opendaylight.yangtools.yang.model.api.ListSchemaNode; @@ -80,7 +80,7 @@ public class ParserFieldsParameterTest { YangParserTestUtils.parseYangSources(TestRestconfUtils.loadFiles("/jukebox")); final QNameModule qNameModule = QNameModule.create(URI.create("http://example.com/ns/example-jukebox"), - new SimpleDateFormat("yyyy-MM-dd").parse("2015-04-04")); + SimpleDateFormatUtil.getRevisionFormat().parse("2015-04-04")); this.jukeboxQName = QName.create(qNameModule, "jukebox"); this.playerQName = QName.create(qNameModule, "player"); @@ -88,7 +88,7 @@ public class ParserFieldsParameterTest { this.augmentedLibraryQName = QName.create( QNameModule.create( URI.create("http://example.com/ns/augmented-jukebox"), - new SimpleDateFormat("yyyy-MM-dd").parse("2016-05-05")), + SimpleDateFormatUtil.getRevisionFormat().parse("2016-05-05")), "augmented-library"); this.albumQName = QName.create(qNameModule, "album"); this.nameQName = QName.create(qNameModule, "name");