Skip to content

Commit

Permalink
only disable DateTime unit test on Java 8
Browse files Browse the repository at this point in the history
Signed-off-by: David Cui <[email protected]>
  • Loading branch information
davidcui1225 committed Mar 11, 2022
1 parent 8b2957d commit 4b664a9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
import java.util.List;
import lombok.AllArgsConstructor;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnJre;
import org.junit.jupiter.api.condition.JRE;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
Expand Down Expand Up @@ -960,7 +961,7 @@ public void year() {
assertEquals(integerValue(2020), eval(expression));
}

@Disabled
@DisabledOnJre(JRE.JAVA_8)
@Test
public void date_format() {
dateFormatTesters.forEach(this::testDateFormat);
Expand Down

0 comments on commit 4b664a9

Please sign in to comment.