2014-11-07 15:00:50 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package akka.stream;
|
|
|
|
|
|
|
|
|
|
import akka.actor.ActorSystem;
|
|
|
|
|
import akka.stream.javadsl.AkkaJUnitActorSystemResource;
|
|
|
|
|
|
|
|
|
|
public abstract class StreamTest {
|
|
|
|
|
final protected ActorSystem system;
|
2015-01-27 18:29:20 +01:00
|
|
|
final protected ActorFlowMaterializer materializer;
|
2014-11-07 15:00:50 +01:00
|
|
|
|
|
|
|
|
protected StreamTest(AkkaJUnitActorSystemResource actorSystemResource) {
|
|
|
|
|
system = actorSystemResource.getSystem();
|
2015-01-27 18:29:20 +01:00
|
|
|
ActorFlowMaterializerSettings settings = ActorFlowMaterializerSettings.create(system);
|
|
|
|
|
materializer = ActorFlowMaterializer.create(settings, system);
|
2014-11-07 15:00:50 +01:00
|
|
|
}
|
|
|
|
|
}
|