Class LoadExpressionDataCliTest


@ContextConfiguration @DirtiesContext(classMode=BEFORE_EACH_TEST_METHOD) public class LoadExpressionDataCliTest extends BaseCliTest5
addGEOData: which load a given option combination reaches, and what a failed -force reload reports.

Each test gets a fresh CLI bean: the options it has parsed stay in fields that nothing clears.

  • Constructor Details

    • LoadExpressionDataCliTest

      public LoadExpressionDataCliTest()
  • Method Details

    • testPlatformOnlyAppliesToAnAccessionFile

      @Test public void testPlatformOnlyAppliesToAnAccessionFile(@TempDir Path dir) throws Exception
      🛑 -y applies to accessions read from -f. The file path called processAccession() directly and skipped the platform-only check, so full experiments were loaded.
      Throws:
      Exception
    • testAFailedForceReloadSaysTheOldExperimentWasDeleted

      @Test public void testAFailedForceReloadSaysTheOldExperimentWasDeleted()
      -force deletes the existing experiment before the fetch, so a failed fetch leaves no copy of it. The error has to say so: it used to report only the load failure.