}
public void testExperimentApproach(){
BasicProperties props = new BasicPropertiesImpl();
AdminManager adminManager = AdminManagerImpl.getInstance();
try {
props.setExperimentApproach(
adminManager.getExperimentTypeID("simple migration"));
} catch (InvalidInputException e) {
assertEquals(true,false);
}
assertEquals(adminManager.getExperimentTypeID("simple migration"), props.getExperimentApproach());
//Test2:
String sTypeID = adminManager.getExperimentTypeID("complex workflow");
try {
props.setExperimentApproach(sTypeID);
} catch (InvalidInputException e) {
assertEquals(true,false);
}
assertEquals("complex workflow", props.getExperimentApproachName(sTypeID));
//Test3:
sTypeID = adminManager.getExperimentTypeID("novalidtypename");
try {
props.setExperimentApproach(sTypeID);
assertEquals(false,true);
} catch (InvalidInputException e) {
assertEquals(true,true);