Skip to content

Commit

Permalink
Issue #135 codacy issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
storozhukBM committed May 12, 2017
1 parent 7342405 commit 4ea60b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public void decorateCompletionStage() throws Exception {
.whenComplete((v, e) -> error.set(e))
.toCompletableFuture();
Try<String> errorResult = Try.of(notPermittedFuture::get);
then(errorResult.isFailure()).isTrue();
assert errorResult.isFailure();
then(errorResult.getCause()).isInstanceOf(ExecutionException.class);
then(notPermittedFuture.isCompletedExceptionally()).isTrue();
then(error.get()).isExactlyInstanceOf(RequestNotPermitted.class);
Expand Down

0 comments on commit 4ea60b7

Please sign in to comment.