Remove unused imports in tests (#30265)
This commit is contained in:
parent
a887c63f8a
commit
258bac491b
42 changed files with 0 additions and 66 deletions
|
|
@ -13,8 +13,6 @@ import static jdocs.actor.Messages.Swap.Swap;
|
|||
import static jdocs.actor.Messages.*;
|
||||
import akka.actor.CoordinatedShutdown;
|
||||
|
||||
import akka.Done;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.time.Duration;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
package jdocs.actor.typed;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import scala.concurrent.ExecutionContextExecutor;
|
||||
|
||||
import akka.actor.typed.*;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
package jdocs.cluster;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import scala.concurrent.Await;
|
||||
import scala.concurrent.duration.Duration;
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigFactory;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import org.junit.Test;
|
|||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
|
||||
import akka.cluster.Cluster;
|
||||
import akka.cluster.ddata.*;
|
||||
import akka.japi.pf.ReceiveBuilder;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ import jdocs.actor.MyBoundedActor;
|
|||
import jdocs.actor.MyActor;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Test;
|
||||
import scala.concurrent.ExecutionContext;
|
||||
import scala.concurrent.ExecutionContextExecutor;
|
||||
|
||||
// #imports
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
package jdocs.pattern;
|
||||
|
||||
import akka.actor.*;
|
||||
import akka.pattern.Backoff;
|
||||
import akka.pattern.BackoffOpts;
|
||||
import akka.pattern.BackoffSupervisor;
|
||||
import akka.testkit.TestActors.EchoActor;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import akka.actor.ActorRef;
|
|||
import akka.actor.ActorRefFactory;
|
||||
import akka.actor.Props;
|
||||
import akka.actor.AbstractActor;
|
||||
import akka.util.Timeout;
|
||||
import scala.concurrent.duration.FiniteDuration;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import java.util.HashSet;
|
|||
import java.util.Set;
|
||||
|
||||
import akka.NotUsed;
|
||||
import akka.actor.typed.javadsl.AbstractBehavior;
|
||||
import akka.persistence.query.Sequence;
|
||||
import akka.persistence.query.Offset;
|
||||
import com.typesafe.config.Config;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
package jdocs.persistence.query;
|
||||
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.japi.Pair;
|
||||
import akka.persistence.PersistentRepr;
|
||||
import akka.persistence.query.EventEnvelope;
|
||||
import akka.persistence.query.Offset;
|
||||
import akka.serialization.Serialization;
|
||||
|
|
@ -22,8 +20,6 @@ import java.util.ArrayList;
|
|||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import static java.util.stream.Collectors.toList;
|
||||
|
||||
// #events-by-tag-publisher
|
||||
public class MyEventsByTagSource extends GraphStage<SourceShape<EventEnvelope>> {
|
||||
public Outlet<EventEnvelope> out = Outlet.create("MyEventByTagSource.out");
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ import org.junit.BeforeClass;
|
|||
import org.junit.Test;
|
||||
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.stream.Materializer;
|
||||
import akka.stream.Supervision;
|
||||
import akka.stream.ActorAttributes;
|
||||
import akka.japi.function.Function;
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
package jdocs.stream;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import akka.NotUsed;
|
||||
import jdocs.AbstractJavaTest;
|
||||
import akka.testkit.javadsl.TestKit;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import akka.actor.AbstractActor;
|
|||
import akka.actor.ActorRef;
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.actor.Props;
|
||||
import akka.pattern.Patterns;
|
||||
import akka.stream.*;
|
||||
import akka.stream.javadsl.*;
|
||||
import akka.testkit.javadsl.TestKit;
|
||||
|
|
@ -18,7 +17,6 @@ import org.junit.Test;
|
|||
import scala.concurrent.duration.FiniteDuration;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
|
||||
public class FlowStreamRefsDocTest extends AbstractJavaTest {
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import akka.NotUsed;
|
|||
import akka.actor.ActorSystem;
|
||||
|
||||
import akka.stream.javadsl.AsPublisher;
|
||||
import akka.stream.javadsl.Flow;
|
||||
import akka.stream.javadsl.Sink;
|
||||
import akka.stream.javadsl.Source;
|
||||
// #takeLast-operator-example
|
||||
|
|
@ -18,8 +17,6 @@ import org.reactivestreams.Publisher;
|
|||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
public class SinkDocExamples {
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import akka.Done;
|
|||
import akka.actor.ActorRef;
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.japi.pf.PFBuilder;
|
||||
import akka.stream.Materializer;
|
||||
import akka.stream.javadsl.Flow;
|
||||
|
||||
import akka.NotUsed;
|
||||
|
|
@ -50,10 +49,8 @@ import akka.stream.Attributes;
|
|||
// #log
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Collection;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
import java.util.function.IntSupplier;
|
||||
|
||||
class SourceOrFlow {
|
||||
private static ActorSystem system = null;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ import akka.stream.javadsl.*;
|
|||
import akka.stream.testkit.TestPublisher;
|
||||
import akka.stream.testkit.TestSubscriber;
|
||||
import akka.util.ByteString;
|
||||
import org.reactivestreams.Publisher;
|
||||
import org.reactivestreams.Subscriber;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
package jdocs.stream.operators.source;
|
||||
|
||||
import akka.Done;
|
||||
import akka.NotUsed;
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.japi.Pair;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import akka.actor.typed.ActorSystem;
|
|||
import akka.japi.Pair;
|
||||
import akka.stream.javadsl.Source;
|
||||
import akka.util.ByteString;
|
||||
import akka.util.Timeout;
|
||||
import akka.actor.typed.javadsl.AskPattern;
|
||||
|
||||
import java.time.Duration;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
package jdocs.stream.operators.sourceorflow;
|
||||
|
||||
import akka.Done;
|
||||
import akka.NotUsed;
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.japi.Pair;
|
||||
import akka.stream.FlowMonitor;
|
||||
|
|
@ -18,7 +17,6 @@ import java.time.Duration;
|
|||
import java.util.Arrays;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.TimeoutException;
|
||||
|
||||
/** */
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import akka.actor.typed.ActorSystem;
|
|||
import akka.stream.javadsl.Source;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class Sliding {
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ package jdocs.stream.operators.sourceorflow;
|
|||
|
||||
import akka.actor.ActorSystem;
|
||||
import akka.japi.Pair;
|
||||
import akka.japi.function.Creator;
|
||||
import akka.japi.function.Function;
|
||||
import akka.stream.javadsl.Sink;
|
||||
import akka.stream.javadsl.Source;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ import org.scalatestplus.junit.JUnitSuite;
|
|||
import java.util.Optional;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
|
||||
public class DeviceTest extends JUnitSuite {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue