From ef87b362d4fa7dca33e5e0b6b8e6b9b296a469c9 Mon Sep 17 00:00:00 2001 From: Morten Haraldsen Date: Tue, 6 Feb 2024 07:10:14 +0100 Subject: [PATCH] Update samples --- src/test/java/samples/ITUParserSamples.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/samples/ITUParserSamples.java b/src/test/java/samples/ITUParserSamples.java index 9a43c95..f16e541 100644 --- a/src/test/java/samples/ITUParserSamples.java +++ b/src/test/java/samples/ITUParserSamples.java @@ -70,7 +70,7 @@ void parseLenient() } @Test - void parseLenientlyWithCustomSeparators() + void parseLenientWithCustomSeparators() { final ParseConfig config = ParseConfig.DEFAULT .withDateTimeSeparators('T', '|') @@ -122,7 +122,7 @@ public OffsetDateTime handle(final OffsetDateTime offsetDateTime) *

Note the limitations and the assumption of UTC time-zone, as mentioned in the javadoc.

*/ @Test - void test() + void lenientTimestamp() { final Instant instant = ITU.parseLenient("2017-12-06").toInstant(); assertThat(instant.toString()).isEqualTo("2017-12-06T00:00:00Z"); @@ -153,7 +153,7 @@ void parseCustomFormat() } @Test - void parseUsingInterface() + void parseUsingInterfaceRfc33939() { final DateTimeParser parser = DateTimeParsers.rfc3339(); final String text = "2000-12-31 23:59:37.123456"; @@ -162,7 +162,7 @@ void parseUsingInterface() } @Test - void testParseLocalTime() + void parseUsingInterfaceLocalTime() { final DateTimeParser parser = DateTimeParsers.localTime(); final String text = "23:59:37.123456"; @@ -171,7 +171,7 @@ void testParseLocalTime() } @Test - void testParseLocalDate() + void parseUsingInterfaceLocalDate() { final DateTimeParser parser = DateTimeParsers.localDate(); final String text = "2013-12-24";