Class DifferentialExpressionAnalysisTaskImplTest

java.lang.Object
ubic.gemma.core.tasks.analysis.diffex.DifferentialExpressionAnalysisTaskImplTest

public class DifferentialExpressionAnalysisTaskImplTest extends Object
Removing an analysis has to take its on-disk artifacts with it, whichever route asks for the removal.

DifferentialExpressionAnalysisService.remove drops the rows only; deleteAnalysis drops them and then the diffex archive and the per-result-set TSV caches. This task backs DELETE /datasets/{id}/tasks/differential/{analysisId}, the second route into the same removal.

Author:
paul
  • Constructor Details

    • DifferentialExpressionAnalysisTaskImplTest

      public DifferentialExpressionAnalysisTaskImplTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • testRemovingAnAnalysisTakesItsFilesWithIt

      @Test public void testRemovingAnAnalysisTakesItsFilesWithIt()
      The rule: the removal goes through deleteAnalysis, with this experiment and this analysis, and the row-only remove is not called at all.
    • testACommandWithNoAnalysisIsRefused

      @Test public void testACommandWithNoAnalysisIsRefused()
      Positive control off the same wiring: the guard above still rejects a command with nothing to remove, so a task that quietly did nothing at all cannot pass the test above.