Skip to content

Commit

Permalink
added junit
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedetta-fabbri committed Jan 16, 2025
1 parent fbdef65 commit 4f5e4e5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

import java.io.IOException;
import java.time.LocalDateTime;
import java.util.TimeZone;

import static org.mockito.Mockito.*;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;

@ExtendWith(MockitoExtension.class)
class LocalDateTimeToOffsetDateTimeSerializerTest {
Expand All @@ -32,7 +34,9 @@ public void setUp() {

@Test
void testDateSerializer() throws IOException {
LocalDateTime localDateTime = LocalDateTime.of(2025, 1, 16, 9, 15,20);
LocalDateTime localDateTime = LocalDateTime.of(2025, 1, 16, 9, 15, 20);

TimeZone.setDefault(TimeZone.getTimeZone("Europe/Rome"));

dateTimeSerializer.serialize(localDateTime, jsonGenerator, serializerProvider);

Expand Down

0 comments on commit 4f5e4e5

Please sign in to comment.