Remove unused imports in tests (#30265)

This commit is contained in:
Andrei Arlou 2021-06-01 14:34:43 +03:00 committed by GitHub
parent a887c63f8a
commit 258bac491b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 0 additions and 66 deletions

View file

@ -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;

View file

@ -4,8 +4,6 @@
package jdocs.actor.typed;
import java.util.concurrent.Executor;
import scala.concurrent.ExecutionContextExecutor;
import akka.actor.typed.*;

View file

@ -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;

View file

@ -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;

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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");

View file

@ -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;

View file

@ -4,8 +4,6 @@
package jdocs.stream;
import static org.junit.Assert.assertEquals;
import akka.NotUsed;
import jdocs.AbstractJavaTest;
import akka.testkit.javadsl.TestKit;

View file

@ -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 {

View file

@ -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 {

View file

@ -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;

View file

@ -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;

View file

@ -4,7 +4,6 @@
package jdocs.stream.operators.source;
import akka.Done;
import akka.NotUsed;
import akka.actor.ActorSystem;
import akka.japi.Pair;

View file

@ -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;

View file

@ -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;
/** */

View file

@ -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 {

View file

@ -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;

View file

@ -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 {