Package eu.planets_project.tb.api.model

Examples of eu.planets_project.tb.api.model.ExperimentSetup


        log.debug("Experiment Current Phase " + exp.getCurrentPhase());
        if( exp.getCurrentPhase() != null )
            log.debug("Experiment Current Phase Stage is " + exp.getCurrentPhase().getState());

        this.exp = exp;
      ExperimentSetup expsetup = exp.getExperimentSetup();
      BasicProperties props = expsetup.getBasicProperties();
      this.id = exp.getEntityID();
      this.ename =(props.getExperimentName());
      this.escope=(props.getScope());
      this.econsiderations=(props.getConsiderations());
      this.econtactaddress=(props.getContactAddress());
View Full Code Here


 
  public void testExperimentNameUnique(){
    TestbedManager manager = TestbedManagerImpl.getInstance();
   
    BasicProperties props = new BasicPropertiesImpl();
    ExperimentSetup expSetup = new ExperimentSetupImpl();
    Experiment exp1 = new ExperimentImpl();
   
  //Test1:
    long expID = manager.registerExperiment(exp1);
    exp1 = manager.getExperiment(expID);

    String sTestname= "TestName12334234445";
    boolean bUnique = manager.isExperimentNameUnique(sTestname);
    //check if the two methods deliver the same results
    assertEquals(bUnique, props.checkExperimentNameUnique(sTestname));
   
    try {
      props.setExperimentName(sTestname);
    } catch (InvalidInputException e) {
      assertEquals(true,false);
    }
    assertEquals(sTestname,props.getExperimentName());
    expSetup.setBasicProperties(props);
    exp1.setExperimentSetup(expSetup);
    manager.updateExperiment(exp1);
   
    assertEquals(false, props.checkExperimentNameUnique(sTestname));
    assertEquals(false, manager.isExperimentNameUnique(sTestname));
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.model.ExperimentSetup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.