Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alicejli committed May 16, 2024
1 parent f63f3b9 commit 2016e40
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 139 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,11 @@ void testTransformAsyncWithExecutor() throws Exception {
ApiFutures.transformAsync(
inputFuture,
(ApiAsyncFunction<Integer, Integer>) input -> ApiFutures.immediateFuture(input + 1),
(Executor) command -> {
counter.incrementAndGet();
command.run();
});
(Executor)
command -> {
counter.incrementAndGet();
command.run();
});
assertThat(outputFuture.get()).isEqualTo(1);
assertThat(counter.get()).isEqualTo(1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ void testCancel() {

@Test
void testException() {
Assertions.assertThrows(Exception.class, () -> {
SettableApiFuture<Integer> future = SettableApiFuture.<Integer>create();
future.setException(new Exception());
future.get();
});
Assertions.assertThrows(
Exception.class,
() -> {
SettableApiFuture<Integer> future = SettableApiFuture.<Integer>create();
future.setException(new Exception());
future.get();
});
}

@Test
Expand Down
Loading

0 comments on commit 2016e40

Please sign in to comment.