Class GeneFactory.GeneBuilder
java.lang.Object
ubic.gemma.core.util.test.fixture.GeneFactory.GeneBuilder
- Enclosing class:
GeneFactory
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build, persist, and return the gene.withGeneProducts(int n) Attach NGeneProducts to the gene.withNcbiId(int id)
-
Method Details
-
withName
-
withOfficialSymbol
-
withOfficialName
-
withNcbiId
-
withTaxon
-
withGeneProducts
Attach NGeneProducts to the gene. Default 0. Each product is given a random name and NCBI GI; they cascade-persist as a side effect of the gene persist. -
build
Build, persist, and return the gene. Goes throughGeneService#create(Gene)so the production code path fires (audit + ACL listeners).
-