File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/ingest-common/src/test/java/org/elasticsearch/ingest/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -948,7 +948,7 @@ public void testToTimestampWithFormattedDateWithoutTimezone() {
948948 public void testToTimestampWithInvalidDate () {
949949 CefParser parser = new CefParser (ZoneId .of ("UTC" ), false );
950950 String invalidDate = "invalid date" ;
951- assertThrows (IllegalArgumentException .class , () -> parser .toTimestamp (invalidDate ));
951+ expectThrows (IllegalArgumentException .class , () -> parser .toTimestamp (invalidDate ));
952952 }
953953
954954 public void testToMacAddressWithSeparators () {
@@ -1004,7 +1004,7 @@ public void testToIPValidIPv6Address() {
10041004
10051005 public void testToIPInvalidIPAddress () {
10061006 CefParser parser = new CefParser (ZoneId .of ("UTC" ), true );
1007- IllegalArgumentException exception = assertThrows (IllegalArgumentException .class , () -> parser .toIP ("invalid_ip" ));
1007+ IllegalArgumentException exception = expectThrows (IllegalArgumentException .class , () -> parser .toIP ("invalid_ip" ));
10081008 assertEquals ("Invalid IP address format" , exception .getMessage ());
10091009 }
10101010
You can’t perform that action at this time.
0 commit comments