Skip to content

Commit

Permalink
Remove unused AbortedTransactionException (redis#3514)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Aug 30, 2023
1 parent 7af02d5 commit c920bb3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 43 deletions.
2 changes: 2 additions & 0 deletions docs/breaking-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@

- `RedisJsonCommands` and `RedisJsonPipelineCommands` interfaces have been moved into `redis.clients.jedis.json.commands` package.

- `AbortedTransactionException` is removed.

- `Queable` class is removed.

- `Params` abstract class is removed.
Expand Down

This file was deleted.

27 changes: 0 additions & 27 deletions src/test/java/redis/clients/jedis/exceptions/ExceptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,6 @@ public static void prepare() {
CAUSE = new Throwable("This is a test cause.");
}

@Test
public void abortedTransaction() {
try {
throw new AbortedTransactionException(MESSAGE);
} catch (Exception e) {
assertSame(AbortedTransactionException.class, e.getClass());
assertEquals(MESSAGE, e.getMessage());
assertNull(e.getCause());
}

try {
throw new AbortedTransactionException(CAUSE);
} catch (Exception e) {
assertSame(AbortedTransactionException.class, e.getClass());
assertEquals(CAUSE, e.getCause());
assertEquals(CAUSE.toString(), e.getMessage());
}

try {
throw new AbortedTransactionException(MESSAGE, CAUSE);
} catch (Exception e) {
assertSame(AbortedTransactionException.class, e.getClass());
assertEquals(MESSAGE, e.getMessage());
assertEquals(CAUSE, e.getCause());
}
}

@Test
public void invalidURI() {
try {
Expand Down

0 comments on commit c920bb3

Please sign in to comment.