Class ExpressionExperimentManipulatingCLITest
java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.cli.util.test.BaseCliTest5
ubic.gemma.apps.ExpressionExperimentManipulatingCLITest
@ContextConfiguration
@TestExecutionListeners(value=org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener.class,
mergeMode=MERGE_WITH_DEFAULTS)
public class ExpressionExperimentManipulatingCLITest
extends BaseCliTest5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoideeServiceandarrayDesignServiceare shared, manually-created mocks (not@MockBean), so nothing resets their recorded interactions between test methods; without this, one test's realloadAll()call could leak into another test'sverify(..., never()).voidA troubled dataset dropped from a multi-dataset run is listed in the batch summary.voidvoiddeleteExperimentsdeletes data with no undo.voidvoiddeleteExperiments -aselects platforms, not datasets, so it must not be rejected for lacking a dataset option.void-all,-fand-qmust not exist as options for a destructive CLI: only-eis recognized.voidvoidvoidvoidvoidIn single-experiment mode the base class defines no-f, so a subclass's-fis the subclass's.
-
Constructor Details
-
ExpressionExperimentManipulatingCLITest
public ExpressionExperimentManipulatingCLITest()
-
-
Method Details
-
resetMocks
@BeforeEach public void resetMocks()eeServiceandarrayDesignServiceare shared, manually-created mocks (not@MockBean), so nothing resets their recorded interactions between test methods; without this, one test's realloadAll()call could leak into another test'sverify(..., never()). -
testSingleExperimentMode
@Test @WithMockUser public void testSingleExperimentMode() -
testSingleExperimentModeLeavesSubclassFileOptionAlone
@Test @WithMockUser public void testSingleExperimentModeLeavesSubclassFileOptionAlone(@TempDir Path tempDir) throws IOException In single-experiment mode the base class defines no-f, so a subclass's-fis the subclass's. It used to be read as a list of datasets as well: importDesign looked up its design file's header line as a dataset and failed.- Throws:
IOException
-
testGetExperimentDataFileResult
@Test public void testGetExperimentDataFileResult() -
testATroubledDatasetDroppedFromABatchIsReportedAsAWarning
@Test @WithMockUser public void testATroubledDatasetDroppedFromABatchIsReportedAsAWarning()A troubled dataset dropped from a multi-dataset run is listed in the batch summary. This CLI has no-forceoption, so the summary must not tell the user to pass it. -
testATroubledDatasetDroppedFromABatchPointsAtForceWhenTheCliAcceptsIt
@Test @WithMockUser public void testATroubledDatasetDroppedFromABatchPointsAtForceWhenTheCliAcceptsIt() -
testDeleteExperimentsWithOnlyAPlatformOption
@Test @WithMockUser public void testDeleteExperimentsWithOnlyAPlatformOption()deleteExperiments -aselects platforms, not datasets, so it must not be rejected for lacking a dataset option. -
testDeleteExperimentsWithNoSelectionStillFails
@Test @WithMockUser public void testDeleteExperimentsWithNoSelectionStillFails() -
testDeleteExperimentsAllNeverLoadsEveryExperiment
@Test @WithMockUser public void testDeleteExperimentsAllNeverLoadsEveryExperiment()deleteExperimentsdeletes data with no undo. Its own-a(delete platforms instead) takes an argument, so a removed-alloption is absorbed as-a llrather than rejected outright — but either way it must never reachBaseReadOnlyService.loadAll(). -
testExplicitEEsOnlyRefusesEveryBulkOption
@Test @WithMockUser public void testExplicitEEsOnlyRefusesEveryBulkOption()-all,-fand-qmust not exist as options for a destructive CLI: only-eis recognized. (-eesetis not checked the same way: since-etakes an argument, Commons CLI's short-option matching absorbs an unrecognized-eesetas-e eset, which is still safe — it addresses one (nonexistent) experiment named "eset", never every experiment in a set.) -
testExplicitEEsOnlyRequiresE
@Test @WithMockUser public void testExplicitEEsOnlyRequiresE() -
testExplicitEEsOnlySucceedsWithE
@Test @WithMockUser public void testExplicitEEsOnlySucceedsWithE()
-