Class ArrayDesignSequenceManipulatingCliTest
java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.cli.util.test.BaseCliTest5
ubic.gemma.apps.ArrayDesignSequenceManipulatingCliTest
@ContextConfiguration
@TestExecutionListeners(value=org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener.class,
mergeMode=MERGE_WITH_DEFAULTS)
public class ArrayDesignSequenceManipulatingCliTest
extends BaseCliTest5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarrayDesignServiceandentityLocatorare shared, manually-created mocks (not@MockBean), so nothing resets their recorded interactions between test methods; without this, one test's realloadAll()call would leak into another test'sverify(..., never()).void-allis not a registered option here, so Commons CLI's short-option matching absorbs it as-a ll(this CLI's own-atakes an argument) rather than rejecting it outright — but either way it must never reachBaseReadOnlyService.loadAll(): "ll" isn't a real platform, so location fails exactly as it would for any other typo, matchingEntityLocatorImpl.locateArrayDesign(String)'s real behavior.voidvoidvoidRegression check: a CLI on this base class that does NOT opt intoArrayDesignSequenceManipulatingCli.setExplicitADsOnly()keeps-all, since that's shared by CLIs that legitimately process every platform (e.g.
-
Constructor Details
-
ArrayDesignSequenceManipulatingCliTest
public ArrayDesignSequenceManipulatingCliTest()
-
-
Method Details
-
resetMocks
@BeforeEach public void resetMocks()arrayDesignServiceandentityLocatorare shared, manually-created mocks (not@MockBean), so nothing resets their recorded interactions between test methods; without this, one test's realloadAll()call would leak into another test'sverify(..., never()). -
testExplicitADsOnlyAllOptionNeverLoadsEveryPlatform
@Test @WithMockUser public void testExplicitADsOnlyAllOptionNeverLoadsEveryPlatform()-allis not a registered option here, so Commons CLI's short-option matching absorbs it as-a ll(this CLI's own-atakes an argument) rather than rejecting it outright — but either way it must never reachBaseReadOnlyService.loadAll(): "ll" isn't a real platform, so location fails exactly as it would for any other typo, matchingEntityLocatorImpl.locateArrayDesign(String)'s real behavior. -
testExplicitADsOnlyRequiresAOrF
@Test @WithMockUser public void testExplicitADsOnlyRequiresAOrF() -
testExplicitADsOnlySucceedsWithA
@Test @WithMockUser public void testExplicitADsOnlySucceedsWithA() -
testOrdinaryCliStillAcceptsAllOption
@Test @WithMockUser public void testOrdinaryCliStillAcceptsAllOption()Regression check: a CLI on this base class that does NOT opt intoArrayDesignSequenceManipulatingCli.setExplicitADsOnly()keeps-all, since that's shared by CLIs that legitimately process every platform (e.g. report regeneration).
-