Class PreboardedExperimentServiceTest

java.lang.Object
ubic.gemma.persistence.service.expression.experiment.PreboardedExperimentServiceTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) public class PreboardedExperimentServiceTest extends Object
Pure-Mockito unit tests for PreboardedExperimentServiceImpl: the 409-on-existing logic in createPreboarded, the promotion FK-rebind + workflow-state advance.
  • Constructor Details

    • PreboardedExperimentServiceTest

      public PreboardedExperimentServiceTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • createPreboarded_freshAccessionPersistsAndEmitsEvent

      @Test public void createPreboarded_freshAccessionPersistsAndEmitsEvent() throws Exception
      Throws:
      Exception
    • createPreboarded_defaultsSourceWhenNull

      @Test public void createPreboarded_defaultsSourceWhenNull() throws Exception
      Throws:
      Exception
    • createPreboarded_existingPreboardedThrows409

      @Test public void createPreboarded_existingPreboardedThrows409()
    • createPreboarded_existingExpressionExperimentThrows409

      @Test public void createPreboarded_existingExpressionExperimentThrows409()
    • createPreboarded_blankAccessionThrows

      @Test public void createPreboarded_blankAccessionThrows()
    • promote_rebindsProposalsAndAdvancesState

      @Test public void promote_rebindsProposalsAndAdvancesState() throws Exception
      Throws:
      Exception
    • promote_carriesTheSourceMetadataForward

      @Test public void promote_carriesTheSourceMetadataForward() throws Exception
      Promotion used to drop the preboarded's harvested payload, so whatever the scrape found was lost the moment the data landed.
      Throws:
      Exception
    • promote_doesNotOverwriteASourceMetadataDocumentTheImportAlreadyWrote

      @Test public void promote_doesNotOverwriteASourceMetadataDocumentTheImportAlreadyWrote() throws Exception
      The import writes the schema-v1 document from the parsed series; a preboarded carries only the smaller scrape payload. Both land in the same column, so overwriting would silently trade the richer document for the poorer one.
      Throws:
      Exception
    • promote_alreadyPromotedThrows

      @Test public void promote_alreadyPromotedThrows()
    • promote_doesNotRegressEeAlreadyCurated

      @Test public void promote_doesNotRegressEeAlreadyCurated() throws Exception
      Throws:
      Exception