Class ArrayDesignFactory.Builder
java.lang.Object
ubic.gemma.core.util.test.fixture.ArrayDesignFactory.Builder
- Enclosing class:
ArrayDesignFactory
Fluent builder for an
ArrayDesign. All withXxx(...)
methods return this for chaining. Single-use; call
build() once.- Author:
- Phase 3 (Vision section 3 - test-fixture rewrite)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build, persist, and return the AD.withProbes(int n) Attach N composite sequences (probes) to the array design.withRandomProbeNames(boolean v) If false, probes are namedprobeset_0,probeset_1, ...withSequences(boolean v) If true, each probe is also given aBioSequence(persisted ahead of the AD).
-
Method Details
-
withTaxon
-
withShortName
-
withName
-
withProbes
Attach N composite sequences (probes) to the array design. Default 0 (empty AD). -
withSequences
If true, each probe is also given aBioSequence(persisted ahead of the AD). Default false - tests that just need probes for FK-shape don't pay the cost. -
withRandomProbeNames
If false, probes are namedprobeset_0,probeset_1, ... Useful for tests that want deterministic names. Default true (random numeric suffix). -
build
Build, persist, and return the AD. Goes throughSecurableBaseImmutableService.create(ArrayDesign)so the ACL-creation listener fires.
-