all #20090 enable running java tests in actor,camel,cluster,persistence
This commit is contained in:
parent
770c216ceb
commit
62d8a69fac
23 changed files with 57 additions and 23 deletions
|
|
@ -8,8 +8,9 @@ import static org.junit.Assert.*;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import akka.japi.Creator;
|
import akka.japi.Creator;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
public class ActorCreationTest {
|
public class ActorCreationTest extends JUnitSuite {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testWrongCreator() {
|
public void testWrongCreator() {
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,10 @@ import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import akka.testkit.AkkaJUnitActorSystemResource;
|
import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
import akka.testkit.AkkaSpec;
|
import akka.testkit.AkkaSpec;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.FiniteDuration;
|
import scala.concurrent.duration.FiniteDuration;
|
||||||
|
|
||||||
public class InboxJavaAPITest {
|
public class InboxJavaAPITest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("InboxJavaAPITest",
|
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("InboxJavaAPITest",
|
||||||
|
|
|
||||||
|
|
@ -20,13 +20,14 @@ import akka.testkit.TestProbe;
|
||||||
|
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.Option;
|
import scala.Option;
|
||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class JavaAPI {
|
public class JavaAPI extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("JavaAPI",
|
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("JavaAPI",
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,11 @@ import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
import akka.testkit.AkkaSpec;
|
import akka.testkit.AkkaSpec;
|
||||||
import com.typesafe.config.ConfigFactory;
|
import com.typesafe.config.ConfigFactory;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class JavaExtension {
|
public class JavaExtension extends JUnitSuite {
|
||||||
|
|
||||||
static class TestExtensionId extends AbstractExtensionId<TestExtension> implements ExtensionIdProvider {
|
static class TestExtensionId extends AbstractExtensionId<TestExtension> implements ExtensionIdProvider {
|
||||||
public final static TestExtensionId TestExtensionProvider = new TestExtensionId();
|
public final static TestExtensionId TestExtensionProvider = new TestExtensionId();
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@ import akka.testkit.TestProbe;
|
||||||
|
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
public class StashJavaAPI {
|
public class StashJavaAPI extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource =
|
public static AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import akka.actor.ActorSystem;
|
||||||
|
|
||||||
import akka.japi.*;
|
import akka.japi.*;
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.Await;
|
import scala.concurrent.Await;
|
||||||
import scala.concurrent.Future;
|
import scala.concurrent.Future;
|
||||||
import scala.concurrent.Promise;
|
import scala.concurrent.Promise;
|
||||||
|
|
@ -22,7 +23,7 @@ import static akka.japi.Util.classTag;
|
||||||
|
|
||||||
import akka.testkit.AkkaSpec;
|
import akka.testkit.AkkaSpec;
|
||||||
|
|
||||||
public class JavaFutureTests {
|
public class JavaFutureTests extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource =
|
public static AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,9 @@ import static akka.event.Logging.*;
|
||||||
import com.typesafe.config.Config;
|
import com.typesafe.config.Config;
|
||||||
import com.typesafe.config.ConfigFactory;
|
import com.typesafe.config.ConfigFactory;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
|
import scala.util.control.NoStackTrace;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
@ -21,7 +23,7 @@ import static org.junit.Assert.assertNotNull;
|
||||||
import static org.junit.Assert.assertSame;
|
import static org.junit.Assert.assertSame;
|
||||||
|
|
||||||
|
|
||||||
public class LoggingAdapterTest {
|
public class LoggingAdapterTest extends JUnitSuite {
|
||||||
|
|
||||||
private static final Config config = ConfigFactory.parseString(
|
private static final Config config = ConfigFactory.parseString(
|
||||||
"akka.loglevel = DEBUG\n" +
|
"akka.loglevel = DEBUG\n" +
|
||||||
|
|
@ -37,7 +39,12 @@ public class LoggingAdapterTest {
|
||||||
log.error("One arg message: {}", "the arg");
|
log.error("One arg message: {}", "the arg");
|
||||||
expectLog(ErrorLevel(), "One arg message: the arg");
|
expectLog(ErrorLevel(), "One arg message: the arg");
|
||||||
|
|
||||||
Throwable cause = new IllegalStateException("This state is illegal");
|
Throwable cause = new IllegalStateException("This state is illegal") {
|
||||||
|
@Override
|
||||||
|
public synchronized Throwable fillInStackTrace() {
|
||||||
|
return this; // no stack trace
|
||||||
|
}
|
||||||
|
};
|
||||||
log.error(cause, "Two args message: {}, {}", "an arg", "another arg");
|
log.error(cause, "Two args message: {}, {}", "an arg", "another arg");
|
||||||
expectLog(ErrorLevel(), "Two args message: an arg, another arg", cause);
|
expectLog(ErrorLevel(), "Two args message: an arg, another arg", cause);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,13 @@ import akka.event.LoggingAdapter;
|
||||||
import akka.event.NoLogging;
|
import akka.event.NoLogging;
|
||||||
import akka.serialization.JavaSerializer;
|
import akka.serialization.JavaSerializer;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class JavaAPITestBase {
|
public class JavaAPITestBase extends JUnitSuite {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void shouldCreateSomeString() {
|
public void shouldCreateSomeString() {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,12 @@ import akka.japi.pf.Match;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.rules.ExpectedException;
|
import org.junit.rules.ExpectedException;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.MatchError;
|
import scala.MatchError;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class MatchBuilderTest {
|
public class MatchBuilderTest extends JUnitSuite {
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public ExpectedException exception = ExpectedException.none();
|
public ExpectedException exception = ExpectedException.none();
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,13 @@
|
||||||
package akka.japi.pf;
|
package akka.japi.pf;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.PartialFunction;
|
import scala.PartialFunction;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class PFBuilderTest {
|
public class PFBuilderTest extends JUnitSuite {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void pfbuilder_matchAny_should_infer_declared_input_type_for_lambda() {
|
public void pfbuilder_matchAny_should_infer_declared_input_type_for_lambda() {
|
||||||
PartialFunction<String,Integer> pf = new PFBuilder<String,Integer>()
|
PartialFunction<String,Integer> pf = new PFBuilder<String,Integer>()
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import akka.testkit.AkkaSpec;
|
||||||
import akka.testkit.TestProbe;
|
import akka.testkit.TestProbe;
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.Await;
|
import scala.concurrent.Await;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
|
|
||||||
|
|
@ -17,7 +18,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
/**
|
/**
|
||||||
* Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
|
* Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
|
||||||
*/
|
*/
|
||||||
public class PatternsTest {
|
public class PatternsTest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("JavaAPI",
|
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("JavaAPI",
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,13 @@
|
||||||
package akka.util;
|
package akka.util;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
import org.scalatest.junit.JUnitSuiteLike;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
|
|
||||||
import static junit.framework.TestCase.assertEquals;
|
import static junit.framework.TestCase.assertEquals;
|
||||||
|
|
||||||
public class ByteStringTest {
|
public class ByteStringTest extends JUnitSuite {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCreation() {
|
public void testCreation() {
|
||||||
|
|
@ -20,6 +22,7 @@ public class ByteStringTest {
|
||||||
public void testBuilderCreation() {
|
public void testBuilderCreation() {
|
||||||
final ByteStringBuilder sb = ByteString.createBuilder();
|
final ByteStringBuilder sb = ByteString.createBuilder();
|
||||||
sb.append(ByteString.fromString("Hello"));
|
sb.append(ByteString.fromString("Hello"));
|
||||||
|
sb.append(ByteString.fromString(" "));
|
||||||
sb.append(ByteString.fromString("World"));
|
sb.append(ByteString.fromString("World"));
|
||||||
assertEquals(ByteString.fromString("Hello World"), sb.result());
|
assertEquals(ByteString.fromString("Hello World"), sb.result());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,10 @@
|
||||||
package akka.util;
|
package akka.util;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
|
|
||||||
public class JavaDuration {
|
public class JavaDuration extends JUnitSuite {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCreation() {
|
public void testCreation() {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ package akka.camel;
|
||||||
import akka.testkit.AkkaJUnitActorSystemResource;
|
import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
import akka.testkit.AkkaSpec;
|
import akka.testkit.AkkaSpec;
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
import scala.concurrent.duration.FiniteDuration;
|
import scala.concurrent.duration.FiniteDuration;
|
||||||
import akka.actor.ActorSystem;
|
import akka.actor.ActorSystem;
|
||||||
|
|
@ -19,7 +20,7 @@ import org.junit.Test;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class ConsumerJavaTest {
|
public class ConsumerJavaTest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource =
|
public static AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import akka.camel.javaapi.UntypedProducerActor;
|
||||||
import akka.testkit.AkkaJUnitActorSystemResource;
|
import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
import akka.util.Timeout;
|
import akka.util.Timeout;
|
||||||
import org.junit.*;
|
import org.junit.*;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.Await;
|
import scala.concurrent.Await;
|
||||||
import scala.concurrent.ExecutionContext;
|
import scala.concurrent.ExecutionContext;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
|
|
@ -19,7 +20,7 @@ import org.apache.camel.component.mock.MockEndpoint;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
public class CustomRouteTest {
|
public class CustomRouteTest extends JUnitSuite {
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
public AkkaJUnitActorSystemResource actorSystemResource =
|
public AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import org.apache.camel.NoTypeConversionAvailableException;
|
||||||
import org.apache.camel.converter.stream.InputStreamCache;
|
import org.apache.camel.converter.stream.InputStreamCache;
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
@ -20,7 +21,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class MessageJavaTest {
|
public class MessageJavaTest extends JUnitSuite {
|
||||||
private Map<String,Object> empty = new HashMap<String, Object>();
|
private Map<String,Object> empty = new HashMap<String, Object>();
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,9 @@ import akka.actor.ActorSystem;
|
||||||
import akka.actor.Props;
|
import akka.actor.Props;
|
||||||
import akka.actor.UntypedActor;
|
import akka.actor.UntypedActor;
|
||||||
import akka.testkit.AkkaJUnitActorSystemResource;
|
import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
public class ClusterClientTest {
|
public class ClusterClientTest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource =
|
public static AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,9 @@ import akka.actor.Props;
|
||||||
import akka.actor.UntypedActor;
|
import akka.actor.UntypedActor;
|
||||||
import akka.event.Logging;
|
import akka.event.Logging;
|
||||||
import akka.event.LoggingAdapter;
|
import akka.event.LoggingAdapter;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
|
|
||||||
public class DistributedPubSubMediatorTest {
|
public class DistributedPubSubMediatorTest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource =
|
public static AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
import org.junit.ClassRule;
|
import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
import akka.testkit.TestProbe;
|
import akka.testkit.TestProbe;
|
||||||
|
|
||||||
|
|
@ -21,7 +22,7 @@ import akka.contrib.pattern.ReliableProxy;
|
||||||
|
|
||||||
//#import
|
//#import
|
||||||
|
|
||||||
public class ReliableProxyTest {
|
public class ReliableProxyTest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource =
|
public static AkkaJUnitActorSystemResource actorSystemResource =
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@ import org.junit.ClassRule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
import com.typesafe.config.ConfigFactory;
|
import com.typesafe.config.ConfigFactory;
|
||||||
import akka.actor.ActorRef;
|
import akka.actor.ActorRef;
|
||||||
|
|
@ -17,7 +19,7 @@ import akka.actor.UntypedActor;
|
||||||
import akka.contrib.throttle.TimerBasedThrottler;
|
import akka.contrib.throttle.TimerBasedThrottler;
|
||||||
import akka.testkit.AkkaJUnitActorSystemResource;
|
import akka.testkit.AkkaJUnitActorSystemResource;
|
||||||
|
|
||||||
public class TimerBasedThrottlerTest {
|
public class TimerBasedThrottlerTest extends JUnitSuite {
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource(
|
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource(
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ class QuickStartDocSpec extends WordSpec with BeforeAndAfterAll with ScalaFuture
|
||||||
system.terminate()
|
system.terminate()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def println(any: Any) = () // silence printing stuff
|
||||||
|
|
||||||
"demonstrate Source" in {
|
"demonstrate Source" in {
|
||||||
//#create-source
|
//#create-source
|
||||||
val source: Source[Int, NotUsed] = Source(1 to 100)
|
val source: Source[Int, NotUsed] = Source(1 to 100)
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import akka.persistence.fsm.PersistentFSM.CurrentState;
|
import akka.persistence.fsm.PersistentFSM.CurrentState;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.scalatest.junit.JUnitSuite;
|
||||||
import scala.concurrent.duration.Duration;
|
import scala.concurrent.duration.Duration;
|
||||||
|
|
||||||
import static akka.persistence.fsm.AbstractPersistentFSMTest.WebStoreCustomerFSM.UserState;
|
import static akka.persistence.fsm.AbstractPersistentFSMTest.WebStoreCustomerFSM.UserState;
|
||||||
|
|
@ -40,7 +41,7 @@ import static org.junit.Assert.assertThat;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
import static org.junit.matchers.JUnitMatchers.hasItems;
|
import static org.junit.matchers.JUnitMatchers.hasItems;
|
||||||
|
|
||||||
public class AbstractPersistentFSMTest {
|
public class AbstractPersistentFSMTest extends JUnitSuite {
|
||||||
private static Option<String> none = Option.none();
|
private static Option<String> none = Option.none();
|
||||||
|
|
||||||
@ClassRule
|
@ClassRule
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import akka.Done
|
||||||
import akka.stream.scaladsl._
|
import akka.stream.scaladsl._
|
||||||
import akka.stream.testkit.Utils._
|
import akka.stream.testkit.Utils._
|
||||||
import akka.stream.testkit.{ TestPublisher, TestSubscriber }
|
import akka.stream.testkit.{ TestPublisher, TestSubscriber }
|
||||||
import akka.stream.{ ActorMaterializer, ClosedShape }
|
import akka.stream._
|
||||||
import scala.concurrent.duration._
|
import scala.concurrent.duration._
|
||||||
import scala.concurrent.{ Await, Future }
|
import scala.concurrent.{ Await, Future }
|
||||||
import akka.testkit.AkkaSpec
|
import akka.testkit.AkkaSpec
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue