Esempio n. 1
0
  @Test
  public void testCanCallEffector() {
    entity = new ExampleJavaEntity(app);
    app.manage(entity);

    entity.effector1("val1");
    assertEquals(entity.effectorInvocations, ImmutableList.of("val1"));

    Task<Void> task = entity.invoke(ExampleJavaEntity.EFFECTOR1, ImmutableMap.of("arg0", "val2"));
    task.blockUntilEnded();
    assertEquals(entity.effectorInvocations, ImmutableList.of("val1", "val2"));
  }