Package org.cipres.treebase.domain.study

Examples of org.cipres.treebase.domain.study.StudyStatus


        "Failed to request making a study ready. The study is not found for submission id:"
          + pSubmissionID);
    }

    if (!study.isReady()) {
      StudyStatus readyStatus = getStudyStatusHome().findStatusReady();
      study.setStudyStatus(readyStatus);
      study.setLastModifiedDate(new Date());
    }

  }
View Full Code Here


    if (logger.isInfoEnabled()) {
      logger.info("\n\t\tRunning Test: " + testName);
    }

    StudyStatusHome fixture = getStudyStatusHome();
    StudyStatus result = fixture.findStatusInProgress();

    // verify
    assertTrue(result != null);
    assertTrue(result.isInProgress());

    if (logger.isInfoEnabled()) {
      logger.info(testName + " verified.");
    }
  }
View Full Code Here

    if (logger.isInfoEnabled()) {
      logger.info("\n\t\tRunning Test: " + testName);
    }

    StudyStatusHome fixture = getStudyStatusHome();
    StudyStatus result = fixture.findStatusReady();

    // verify
    assertTrue(result != null);
    assertTrue(result.isReady());

    if (logger.isInfoEnabled()) {
      logger.info(testName + " verified.");
    }
  }
View Full Code Here

    if (logger.isInfoEnabled()) {
      logger.info("\n\t\tRunning Test: " + testName);
    }

    StudyStatusHome fixture = getStudyStatusHome();
    StudyStatus result = fixture.findStatusPublished();

    // verify
    assertTrue(result != null);
    assertTrue(result.isPublished());

    if (logger.isInfoEnabled()) {
      logger.info(testName + " verified.");
    }
  }
View Full Code Here

   * Find by status description.
   *
   * Creation date: Apr 20, 2006 2:34:56 PM
   */
  private StudyStatus findByDescription(String pDesc) {
    StudyStatus returnVal = null;

    Criteria c = getSession().createCriteria(StudyStatus.class).add(
      org.hibernate.criterion.Expression.eq("description", pDesc));

    returnVal = (StudyStatus) c.uniqueResult();
View Full Code Here

      logger.info("\n\t\tRunning Test: " + testName);
    }

    // 1. create a new study:
    String newName = testName + " test " + Math.random();
    StudyStatus inprogress = getStudyStatusHome().findStatusInProgress();

    // Citation c = new ArticleCitation();
    // c.setTitle(newName);

    Study s = new Study();
View Full Code Here

TOP

Related Classes of org.cipres.treebase.domain.study.StudyStatus

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.