Skip to content

Commit

Permalink
Suppress EP warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Dec 17, 2023
1 parent 96f5093 commit 2fd3c25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mug/src/test/java/com/google/mu/time/DateTimeFormatsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,26 +576,31 @@ public void timeZoneMixedIn_unsupportedZoneSpec() {
}

@Test
@SuppressWarnings("DateTimeExampleStringCheck")
public void emptyExample_disallowed() {
assertThrows(IllegalArgumentException.class, () -> formatOf(""));
}

@Test
@SuppressWarnings("DateTimeExampleStringCheck")
public void exampleWithOnlySpaces_disallowed() {
assertThrows(IllegalArgumentException.class, () -> formatOf(" "));
}

@Test
@SuppressWarnings("DateTimeExampleStringCheck")
public void exampleWithOnlyPunctuations_disallowed() {
assertThrows(IllegalArgumentException.class, () -> formatOf("/"));
}

@Test
@SuppressWarnings("DateTimeExampleStringCheck")
public void exampleWithOnlyNumbers_disallowed() {
assertThrows(IllegalArgumentException.class, () -> formatOf("1234"));
}

@Test
@SuppressWarnings("DateTimeExampleStringCheck")
public void exampleWithOnlyWords_disallowed() {
assertThrows(IllegalArgumentException.class, () -> formatOf("yyyy"));
assertThrows(IllegalArgumentException.class, () -> formatOf("America"));
Expand Down

0 comments on commit 2fd3c25

Please sign in to comment.