Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Avoid now timestamps to avoid formatting issues that are not relevant to assertions.

[#578]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
  • Loading branch information
mp911de committed Feb 16, 2023
1 parent 4a41b7c commit 2581cf9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ void doCanDecodeNoType() {

@Test
void doEncode() {
LocalTime localTime = LocalTime.now();
LocalTime localTime = LocalTime.parse("14:33:43.62");

assertThat(new LocalTimeCodec(TEST).doEncode(localTime))
.hasFormat(FORMAT_TEXT)
.hasType(TIME.getObjectId())
.hasValue(encode(TEST, localTime.toString()));
.hasValue(encode(TEST, "14:33:43.62"));
}

@Test
Expand Down

0 comments on commit 2581cf9

Please sign in to comment.