mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 16:37:58 +01:00
Fixed broken test
This commit is contained in:
parent
4ded1832b9
commit
b5d496e9ad
@ -21,10 +21,10 @@ import org.junit.platform.runner.JUnitPlatform;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.time.ZoneId;
|
||||
import java.util.Optional;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
/**
|
||||
* Sanity Test for different timezones.
|
||||
@ -66,7 +66,9 @@ class TimeZoneUtilityTest {
|
||||
|
||||
@Test
|
||||
void serverReturnsServerTimeZone() {
|
||||
assertEquals(TimeZone.getDefault(), TimeZoneUtility.parseTimeZone("server"));
|
||||
Optional<TimeZone> result = TimeZoneUtility.parseTimeZone("server");
|
||||
assertTrue(result.isPresent());
|
||||
assertEquals(TimeZone.getDefault(), result.get());
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user