From e01b93ff911b3d491bc51fa729f44e9fde0cc66e Mon Sep 17 00:00:00 2001 From: He-Pin Date: Sun, 22 Oct 2023 13:48:38 +0800 Subject: [PATCH] =fmt Add format hint --- .../test/java/jdocs/org/apache/pekko/typed/AggregatorTest.java | 2 ++ .../pekko/actor/typed/javadsl/ActorContextPipeToSelfTest.java | 2 ++ .../pekko/cluster/sharding/typed/ReplicatedShardingTest.java | 2 ++ .../pekko/persistence/typed/ReplicatedAuctionExampleTest.java | 2 ++ 4 files changed, 8 insertions(+) diff --git a/actor-typed-tests/src/test/java/jdocs/org/apache/pekko/typed/AggregatorTest.java b/actor-typed-tests/src/test/java/jdocs/org/apache/pekko/typed/AggregatorTest.java index 7cbe7ddf2aa..161597d52a2 100644 --- a/actor-typed-tests/src/test/java/jdocs/org/apache/pekko/typed/AggregatorTest.java +++ b/actor-typed-tests/src/test/java/jdocs/org/apache/pekko/typed/AggregatorTest.java @@ -36,10 +36,12 @@ import java.util.function.Function; import java.util.stream.Collectors; +// format: off import static jdocs.org.apache.pekko.typed.AggregatorTest.IllustrateUsage.HotelCustomer; import static jdocs.org.apache.pekko.typed.AggregatorTest.IllustrateUsage.Hotel1; import static jdocs.org.apache.pekko.typed.AggregatorTest.IllustrateUsage.Hotel2; import static org.junit.Assert.assertEquals; +// format: on public class AggregatorTest extends JUnitSuite { @ClassRule public static final TestKitJunitResource testKit = new TestKitJunitResource(); diff --git a/actor-typed-tests/src/test/java/org/apache/pekko/actor/typed/javadsl/ActorContextPipeToSelfTest.java b/actor-typed-tests/src/test/java/org/apache/pekko/actor/typed/javadsl/ActorContextPipeToSelfTest.java index c9c25644341..9909117790a 100644 --- a/actor-typed-tests/src/test/java/org/apache/pekko/actor/typed/javadsl/ActorContextPipeToSelfTest.java +++ b/actor-typed-tests/src/test/java/org/apache/pekko/actor/typed/javadsl/ActorContextPipeToSelfTest.java @@ -30,8 +30,10 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; +// format: off import static org.hamcrest.CoreMatchers.startsWith; import static org.junit.Assert.*; +// format: on public final class ActorContextPipeToSelfTest extends JUnitSuite { diff --git a/cluster-sharding-typed/src/test/java/org/apache/pekko/cluster/sharding/typed/ReplicatedShardingTest.java b/cluster-sharding-typed/src/test/java/org/apache/pekko/cluster/sharding/typed/ReplicatedShardingTest.java index 25599dd4d1d..576370b69e6 100644 --- a/cluster-sharding-typed/src/test/java/org/apache/pekko/cluster/sharding/typed/ReplicatedShardingTest.java +++ b/cluster-sharding-typed/src/test/java/org/apache/pekko/cluster/sharding/typed/ReplicatedShardingTest.java @@ -42,8 +42,10 @@ import java.util.concurrent.ThreadLocalRandom; import java.util.stream.Collectors; +// format: off import static org.apache.pekko.cluster.sharding.typed.ReplicatedShardingTest.ProxyActor.ALL_REPLICAS; import static org.junit.Assert.assertEquals; +// format: on public class ReplicatedShardingTest extends JUnitSuite { diff --git a/persistence-typed-tests/src/test/java/jdocs/org/apache/pekko/persistence/typed/ReplicatedAuctionExampleTest.java b/persistence-typed-tests/src/test/java/jdocs/org/apache/pekko/persistence/typed/ReplicatedAuctionExampleTest.java index 0b39f4ee057..7055d229ef6 100644 --- a/persistence-typed-tests/src/test/java/jdocs/org/apache/pekko/persistence/typed/ReplicatedAuctionExampleTest.java +++ b/persistence-typed-tests/src/test/java/jdocs/org/apache/pekko/persistence/typed/ReplicatedAuctionExampleTest.java @@ -48,9 +48,11 @@ import java.util.Set; import java.util.stream.Collectors; +// format: off import static jdocs.org.apache.pekko.persistence.typed.AuctionEntity.*; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +// format: on public class ReplicatedAuctionExampleTest extends JUnitSuite { @ClassRule