| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2014-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.replication.protocol; |
| | | |
| | |
| | | } |
| | | |
| | | @Test(expectedExceptions = DataFormatException.class) |
| | | public void testByteArrayScanner_nextCSNUTF8_throwsExceptionWhenNonHexCSN() throws Exception |
| | | { |
| | | final byte[] bytes = new ByteArrayBuilder().appendString("000000000001zabc002d0000007b").toByteArray(); |
| | | new ByteArrayScanner(bytes).nextCSNUTF8(); |
| | | } |
| | | |
| | | @Test(expectedExceptions = DataFormatException.class) |
| | | public void testByteArrayScanner_nextDN_throwsExceptionWhenInvalidDN() throws Exception |
| | | { |
| | | final byte[] bytes = new ByteArrayBuilder().appendString("this is not a valid DN").toByteArray(); |