Java Code Examples for io.vlingo.actors.testkit.TestWorld#start()

The following examples show how to use io.vlingo.actors.testkit.TestWorld#start() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GridActorOfTest.java    From vlingo-lattice with Mozilla Public License 2.0 6 votes vote down vote up
@Before
public void setUp() throws Exception {
  Configuration configuration =
          Configuration
            .define()
            .with(Slf4jLoggerPlugin
                    .Slf4jLoggerPluginConfiguration
                    .define()
                    .defaultLogger()
                    .name("vlingo/actors"));

    testWorld = TestWorld.start("test", configuration);
    world = testWorld.world();

    final io.vlingo.cluster.model.Properties properties = ClusterProperties.oneNode();

    grid = Grid.start(world, properties, "node1");
    grid.quorumAchieved();
}
 
Example 2
Source File: ActorsTest.java    From vlingo-actors with Mozilla Public License 2.0 5 votes vote down vote up
@Before
public void setUp() throws Exception {
  Configuration configuration =
          Configuration
            .define()
            .with(Slf4jLoggerPlugin
                    .Slf4jLoggerPluginConfiguration
                    .define()
                    .defaultLogger()
                    .name("vlingo/actors"));

    testWorld = TestWorld.start("test", configuration);
    world = testWorld.world();
}
 
Example 3
Source File: CommonSupervisionTest.java    From vlingo-actors with Mozilla Public License 2.0 5 votes vote down vote up
@Before
@Override
public void setUp() throws Exception {
  Configuration configuration =
          Configuration
            .define()
            .with(CommonSupervisorsPluginConfiguration
                    .define()
                    .supervisor("default", "pingSupervisor", Ping.class, PingSupervisorActor.class)
                    .supervisor("default", "pongSupervisor", Pong.class, PongSupervisorActor.class));

  testWorld = TestWorld.start("test", configuration);
  world = testWorld.world();
}
 
Example 4
Source File: DefaultSupervisorOverrideTest.java    From vlingo-actors with Mozilla Public License 2.0 5 votes vote down vote up
@Before
@Override
public void setUp() throws Exception {
  Configuration configuration =
          Configuration
            .define()
            .with(DefaultSupervisorOverridePluginConfiguration
                    .define()
                    .supervisor("default", "overrideSupervisor", DefaultSupervisorOverride.class));

  testWorld = TestWorld.start("test", configuration);
  world = testWorld.world();
}