Exemplo n.º 1
0
  @Test
  public void testGetModelRoles() {
    SCARoleSimulator sim = new SCARoleSimulator();

    try {
      SimulationModel simmodel = new SimulationModel("simsample.composite", null);

      Object model = sim.getModel(simmodel);

      if (model == null) {
        fail("Model is null");
      }

      java.util.List<Role> roles = sim.getModelRoles(model);

      if (roles.size() > 0) {
        fail("Should be no roles");
      }
    } catch (Exception e) {
      fail("Exception occurred: " + e);
    }
  }