Skip to content

Commit

Permalink
Swap things
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 authored and CoolTomatos committed Nov 4, 2022
1 parent 7b091a8 commit 5191427
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ static final class LocalDateOfInstant {
LocalDate before(Instant instant, ZoneId zoneId) {
return Refaster.anyOf(
instant.atZone(zoneId).toLocalDate(),
OffsetDateTime.ofInstant(instant, zoneId).toLocalDate(),
LocalDateTime.ofInstant(instant, zoneId).toLocalDate());
LocalDateTime.ofInstant(instant, zoneId).toLocalDate(),
OffsetDateTime.ofInstant(instant, zoneId).toLocalDate());
}

@BeforeTemplate
Expand Down Expand Up @@ -113,9 +113,9 @@ static final class LocalTimeOfInstant {
LocalTime before(Instant instant, ZoneId zoneId) {
return Refaster.anyOf(
instant.atZone(zoneId).toLocalTime(),
LocalDateTime.ofInstant(instant, zoneId).toLocalTime(),
OffsetDateTime.ofInstant(instant, zoneId).toLocalTime(),
OffsetTime.ofInstant(instant, zoneId).toLocalTime(),
LocalDateTime.ofInstant(instant, zoneId).toLocalTime());
OffsetTime.ofInstant(instant, zoneId).toLocalTime());
}

@BeforeTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ ImmutableSet<LocalDate> testLocalDateOfInstant() {
return ImmutableSet.of(
Instant.EPOCH.atZone(ZoneId.of("Europe/Amsterdam")).toLocalDate(),
Instant.EPOCH.atOffset(ZoneOffset.UTC).toLocalDate(),
OffsetDateTime.ofInstant(Instant.EPOCH, ZoneId.of("Europe/Berlin")).toLocalDate(),
LocalDateTime.ofInstant(Instant.EPOCH, ZoneOffset.MIN).toLocalDate());
LocalDateTime.ofInstant(Instant.EPOCH, ZoneId.of("Europe/Berlin")).toLocalDate(),
OffsetDateTime.ofInstant(Instant.EPOCH, ZoneOffset.MIN).toLocalDate());
}

ImmutableSet<LocalDateTime> testLocalDateTimeOfInstant() {
Expand All @@ -55,9 +55,9 @@ ImmutableSet<LocalTime> testLocalTimeOfInstant() {
return ImmutableSet.of(
Instant.EPOCH.atZone(ZoneId.of("Europe/Amsterdam")).toLocalTime(),
Instant.EPOCH.atOffset(ZoneOffset.UTC).toLocalTime(),
OffsetDateTime.ofInstant(Instant.EPOCH, ZoneId.of("Europe/Berlin")).toLocalTime(),
OffsetTime.ofInstant(Instant.EPOCH, ZoneOffset.MIN).toLocalTime(),
LocalDateTime.ofInstant(Instant.EPOCH, ZoneOffset.MAX).toLocalTime());
LocalDateTime.ofInstant(Instant.EPOCH, ZoneId.of("Europe/Berlin")).toLocalTime(),
OffsetDateTime.ofInstant(Instant.EPOCH, ZoneOffset.MIN).toLocalTime(),
OffsetTime.ofInstant(Instant.EPOCH, ZoneOffset.MAX).toLocalTime());
}

OffsetDateTime testOffsetDateTimeOfInstant() {
Expand Down

0 comments on commit 5191427

Please sign in to comment.