Skip to content

Commit

Permalink
objectionary#3132: fix checkstyle in AtCompositeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacParize committed May 16, 2024
1 parent 629b5b6 commit 1892833
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions eo-runtime/src/test/java/org/eolang/AtCompositeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,28 @@ public final class AtCompositeTest {
@Test
void decoratesCheckedException() {
Assertions.assertThrows(
ExFailure.class,
() -> new AtComposite(
Phi.,
self -> {
throw new InstantiationException("intended checked");
}
).get(),
FAILED_ASSERT_MESSAGE_SUPPLIER.get()
ExFailure.class,
() -> new AtComposite(
Phi.,
self -> {
throw new InstantiationException("intended checked");
}
).get(),
FAILED_ASSERT_MESSAGE_SUPPLIER.get()
);
}

@Test
void decoratesUncheckedException() {
Assertions.assertThrows(
IllegalStateException.class,
() -> new AtComposite(
Phi.,
self -> {
throw new IllegalStateException("intended unchecked");
}
).get(),
FAILED_ASSERT_MESSAGE_SUPPLIER.get()
IllegalStateException.class,
() -> new AtComposite(
Phi.,
self -> {
throw new IllegalStateException("intended unchecked");
}
).get(),
FAILED_ASSERT_MESSAGE_SUPPLIER.get()
);
}

Expand All @@ -82,11 +82,11 @@ void goesThroughJustOnce() {
final Phi rnd = new Rnd();
final Phi phi = new PhMethod(rnd, Attr.LAMBDA);
MatcherAssert.assertThat(
FAILED_ASSERT_MESSAGE_SUPPLIER.get(),
new Dataized(phi).take(Double.class),
Matchers.equalTo(
new Dataized(phi).take(Double.class)
)
FAILED_ASSERT_MESSAGE_SUPPLIER.get(),
new Dataized(phi).take(Double.class),
Matchers.equalTo(
new Dataized(phi).take(Double.class)
)
);
}

Expand All @@ -102,11 +102,11 @@ private static class Rnd extends PhDefault {
Rnd() {
super();
this.add(
Attr.LAMBDA,
new AtComposite(
this,
rho -> new Data.ToPhi(new SecureRandom().nextDouble())
)
Attr.LAMBDA,
new AtComposite(
this,
rho -> new Data.ToPhi(new SecureRandom().nextDouble())
)
);
}
}
Expand Down

0 comments on commit 1892833

Please sign in to comment.