Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix checkstyle.
Browse files Browse the repository at this point in the history
anuraaga authored and kojilin committed Jun 2, 2017
1 parent b66f825 commit 9f94785
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -364,11 +364,11 @@ public void timedOut() {

((AbstractRequestContext) ctx).setTimedOut();

assertThatThrownBy(() -> executorService.submit(() -> {}))
assertThatThrownBy(() -> executorService.submit(() -> { }))
.isInstanceOf(RejectedExecutionException.class);
assertThatThrownBy(() -> executorService.execute(() -> {}))
assertThatThrownBy(() -> executorService.execute(() -> { }))
.isInstanceOf(RejectedExecutionException.class);
assertThatThrownBy(() -> executorService.submit(() -> {}, "foo"))
assertThatThrownBy(() -> executorService.submit(() -> { }, "foo"))
.isInstanceOf(RejectedExecutionException.class);
assertThatThrownBy(() -> executorService.submit(() -> "foo"))
.isInstanceOf(RejectedExecutionException.class);
@@ -381,15 +381,15 @@ public void timedOut() {
assertThatThrownBy(() -> executorService.invokeAny(ImmutableList.of(() -> "foo"), 10, TimeUnit.SECONDS))
.isInstanceOf(RejectedExecutionException.class);

assertThatThrownBy(() -> eventLoop.schedule(() -> {}, 0, TimeUnit.SECONDS))
assertThatThrownBy(() -> eventLoop.schedule(() -> { }, 0, TimeUnit.SECONDS))
.isInstanceOf(RejectedExecutionException.class);
assertThatThrownBy(() -> eventLoop.schedule(() -> "foo", 0, TimeUnit.SECONDS))
.isInstanceOf(RejectedExecutionException.class);
assertThatThrownBy(() -> eventLoop.scheduleAtFixedRate(
() -> {}, 0, 1, TimeUnit.SECONDS))
() -> { }, 0, 1, TimeUnit.SECONDS))
.isInstanceOf(RejectedExecutionException.class);
assertThatThrownBy(() -> eventLoop.scheduleWithFixedDelay(
() -> {}, 0, 1, TimeUnit.SECONDS))
() -> { }, 0, 1, TimeUnit.SECONDS))
.isInstanceOf(RejectedExecutionException.class);

AtomicBoolean callbackRun = new AtomicBoolean();

0 comments on commit 9f94785

Please sign in to comment.