Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
arturobernalg committed Jan 20, 2025
1 parent 41fb510 commit becce57
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,23 +612,6 @@ void testSimulatedBytePropertiesIPv6() throws Exception {
}


@Test
void testSimulatedBytePropertiesRawHex() throws Exception {
final byte[] rawHexByteArray = {0x0A, 0x1B, 0x2C, 0x3D, 0x4E, 0x5F}; // Random binary data

final List<List<?>> entries = new ArrayList<>();
final List<Object> entry = new ArrayList<>();
entry.add(SubjectName.IP);
entry.add(rawHexByteArray);
entries.add(entry);

// Mocking the certificate behavior
final X509Certificate mockCert = generateX509Certificate(entries);
Assertions.assertThrows(IllegalArgumentException.class, () -> DefaultHostnameVerifier.getSubjectAltNames(mockCert, -1));

}


private X509Certificate generateX509Certificate(final List<List<?>> entries) {
return new X509Certificate() {

Expand Down

0 comments on commit becce57

Please sign in to comment.