@Test public void testGetModelRoles() { SwitchyardRoleSimulator sim=new SwitchyardRoleSimulator(); try { java.io.InputStream is=ClassLoader.getSystemResourceAsStream("descriptors/java/store/switchyard.xml"); SimulationModel simmodel=new SimulationModel("descriptors/java/store/switchyard.xml",is); Object model=sim.getModel(simmodel, null); 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); } }
public List<Role> getModelRoles(Object model) { return(java.util.Collections.emptyList()); }
SwitchyardRoleSimulator implements RoleSimulator { public List<Role> getModelRoles(Object model) { return(java.util.Collections.emptyList()); } }
SwitchyardRoleSimulator implements RoleSimulator { public List<Role> getModelRoles(Object model) { return(java.util.Collections.emptyList()); }  }
SwitchyardRoleSimulator implements RoleSimulator { public List<Role> getModelRoles(Object model) { return(java.util.Collections.emptyList()); }  String getName(); void initialize(SimulationContext context); boolean isSupported(SimulationModel model); Object getModel(SimulationModel model, ResourceLocator locator); List<Role> getModelRoles(Object model); Object getModelForRole(Object model, Role role, ResourceLocator locator); void onEvent(SimulationContext context, final Event event,
					final SimulationHandler handler); void close(SimulationContext context); }
SwitchyardRoleSimulator implements RoleSimulator { public List<Role> getModelRoles(Object model) { return(java.util.Collections.emptyList()); }  String getName(); void initialize(SimulationContext context); boolean isSupported(SimulationModel model); Object getModel(SimulationModel model, ResourceLocator locator); List<Role> getModelRoles(Object model); Object getModelForRole(Object model, Role role, ResourceLocator locator); void onEvent(SimulationContext context, final Event event,
					final SimulationHandler handler); void close(SimulationContext context);  }