csw.testkit.javadsl

Members list

Type members

Classlikes

final class FrameworkTestKitJunitResource(val frameworkTestKit: FrameworkTestKit, services: List[CSWService]) extends ExternalResource

A Junit external resource for the FrameworkTestKit, making it possible to have Junit manage the lifecycle of the testkit. The testkit will be automatically shut down when the test completes or fails.

A Junit external resource for the FrameworkTestKit, making it possible to have Junit manage the lifecycle of the testkit. The testkit will be automatically shut down when the test completes or fails.

Example:

public class JFrameworkExampleTest {

@ClassRule
 public static final FrameworkTestKitJunitResource testKit =
    new FrameworkTestKitJunitResource(JCSWService.EventServer, JCSWService.ConfigServer);

 @Test
 public void spawnContainer() {
    ActorRef<ContainerMessage> containerRef =
    testKit.spawnContainer(ConfigFactory.load("container.conf"))
 }

}

Attributes

Supertypes
class ExternalResource
trait TestRule
class Object
trait Matchable
class Any