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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidPromotion used to drop the preboarded's harvested payload, so whatever the scrape found was lost the moment the data landed.voidThe import writes the schema-v1 document from the parsed series; a preboarded carries only the smaller scrape payload.voidvoidvoidsetUp()
-
Constructor Details
-
PreboardedExperimentServiceTest
public PreboardedExperimentServiceTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
createPreboarded_freshAccessionPersistsAndEmitsEvent
-
createPreboarded_defaultsSourceWhenNull
-
createPreboarded_existingPreboardedThrows409
@Test public void createPreboarded_existingPreboardedThrows409() -
createPreboarded_existingExpressionExperimentThrows409
@Test public void createPreboarded_existingExpressionExperimentThrows409() -
createPreboarded_blankAccessionThrows
@Test public void createPreboarded_blankAccessionThrows() -
promote_rebindsProposalsAndAdvancesState
-
promote_carriesTheSourceMetadataForward
-
promote_doesNotOverwriteASourceMetadataDocumentTheImportAlreadyWrote
@Test public void promote_doesNotOverwriteASourceMetadataDocumentTheImportAlreadyWrote() throws ExceptionThe 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
-