Search in sources :

Example 11 with ExpressionExperimentDetailsValueObject

use of ubic.gemma.model.expression.experiment.ExpressionExperimentDetailsValueObject in project Gemma by PavlidisLab.

the class CuratableValueObjectTest method testCuratableValueObjectCreation.

@Test
public void testCuratableValueObjectCreation() {
    ArrayDesignValueObject adVO = this.arrayDesignService.loadValueObject(arrayDesign);
    assertNotNull(adVO);
    try {
        Thread.sleep(1000);
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
    ExpressionExperimentValueObject eeVO = this.expressionExperimentService.loadValueObject(expressionExperiment);
    assertNotNull(eeVO);
    try {
        Thread.sleep(1000);
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
    ExpressionExperimentDetailsValueObject eeDVO = new ExpressionExperimentDetailsValueObject(eeVO);
    eeDVO.setArrayDesigns(Collections.singleton(adVO));
    assertNotNull(eeDVO);
    assertNotNull(eeDVO.getArrayDesigns());
}
Also used : ExpressionExperimentValueObject(ubic.gemma.model.expression.experiment.ExpressionExperimentValueObject) ArrayDesignValueObject(ubic.gemma.model.expression.arrayDesign.ArrayDesignValueObject) ExpressionExperimentDetailsValueObject(ubic.gemma.model.expression.experiment.ExpressionExperimentDetailsValueObject) Test(org.junit.Test) BaseSpringWebTest(ubic.gemma.web.util.BaseSpringWebTest)

Aggregations

ExpressionExperimentDetailsValueObject (ubic.gemma.model.expression.experiment.ExpressionExperimentDetailsValueObject)11 ExpressionExperimentValueObject (ubic.gemma.model.expression.experiment.ExpressionExperimentValueObject)4 StopWatch (org.apache.commons.lang3.time.StopWatch)3 Test (org.junit.Test)3 BaseSpringWebTest (ubic.gemma.web.util.BaseSpringWebTest)3 Element (net.sf.ehcache.Element)2 ArrayDesignValueObject (ubic.gemma.model.expression.arrayDesign.ArrayDesignValueObject)2 ExpressionExperiment (ubic.gemma.model.expression.experiment.ExpressionExperiment)2 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 StopWatch (org.springframework.util.StopWatch)1 Condition (ubic.gemma.core.tasks.visualization.DifferentialExpressionGenesConditionsValueObject.Condition)1 DifferentialExpressionAnalysisValueObject (ubic.gemma.model.analysis.expression.diff.DifferentialExpressionAnalysisValueObject)1 Auditable (ubic.gemma.model.common.Auditable)1 AuditEvent (ubic.gemma.model.common.auditAndSecurity.AuditEvent)1 ExperimentalFactorValueObject (ubic.gemma.model.expression.experiment.ExperimentalFactorValueObject)1 FactorValueValueObject (ubic.gemma.model.expression.experiment.FactorValueValueObject)1 Gene (ubic.gemma.model.genome.Gene)1