| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test(expectedExceptions = DecodeException.class) |
| | | public final void testLdifPatchInvalidChangeRecord() throws Exception { |
| | | // @formatter:off |
| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test(expectedExceptions = DecodeException.class) |
| | | public final void testFailFastPatchOnModifyRequestFailsDueToWrongDN() throws Exception { |
| | | |
| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test() |
| | | public final void testOverwritePatchOnModifyRequestSucceedsEvenIfWrongDN() throws Exception { |
| | | |
| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test(expectedExceptions = DecodeException.class) |
| | | public final void testFailFastPatchOnModifyDNRequestFailsDueToWrongDN() throws Exception { |
| | | final RejectedChangeRecordListener listener = RejectedChangeRecordListener.FAIL_FAST; |
| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test() |
| | | public final void testOverwritePatchOnModifyDNRequestSucceedsEvenWithWrongDN() throws Exception { |
| | | final RejectedChangeRecordListener listener = RejectedChangeRecordListener.OVERWRITE; |
| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test(expectedExceptions = DecodeException.class) |
| | | public final void testFailFastPatchOnModifyDNRequestFailsDueToDuplicateEntry() throws Exception { |
| | | final RejectedChangeRecordListener listener = RejectedChangeRecordListener.FAIL_FAST; |
| | |
| | | * |
| | | * @throws Exception |
| | | */ |
| | | @SuppressWarnings("resource") |
| | | @Test() |
| | | public final void testOverwritePatchOnModifyDNRequestSucceedsEvenWithDuplicateEntry() throws Exception { |
| | | final RejectedChangeRecordListener listener = RejectedChangeRecordListener.OVERWRITE; |