Skip to content

Commit d05a393

Browse files
committed
Add a test that should fail
1 parent 11b5f16 commit d05a393

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/CefProcessorTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,13 @@ public void testToMacAddressWithSeparators() {
970970
});
971971
}
972972

973+
public void testInvalidMacAddressSeparator() {
974+
CefParser parser = new CefParser(ZoneId.of("UTC"), false);
975+
String macAddress = "00|0D|60|AF|1B|61";
976+
String result = parser.toMACAddress(macAddress);
977+
assertEquals("00|0D|60|AF|1B|61", result);
978+
}
979+
973980
public void testEUI48ToMacAddressWithOutSeparators() {
974981
CefParser parser = new CefParser(ZoneId.of("UTC"), false);
975982
String macAddress = "000D60AF1B61";

0 commit comments

Comments
 (0)