Class BaseSpringContextTest5
java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.core.util.test.BaseIntegrationTest5
ubic.gemma.core.util.test.BaseSpringContextTest5
- Direct Known Subclasses:
AbstractArrayDesignProcessingTest, AbstractGeoServiceTest5, AclAdviceTest, AclAuthorizationTest, AclQueryUtilsTest, ArrayDesignMergeServiceTest, ArrayDesignReportServiceTest, AuditEventServiceTest, AuditTrailDaoTest, AuditTrailServiceImplTest, BibliographicReferenceServiceImplTest, BibliographicReferenceServiceTest, BioAssayServiceTest, BioMaterialServiceTest, BioSequencePersistTest, BlacklistedEntityServiceTest, BlacklistTest, BlatAssociationServiceTest, BlatResultServiceTest, CharacteristicServiceTest, CompositeSequenceServiceTest, CuratableValueObjectTest, DatabaseEntryDaoImplTest, EeWriteServiceImplQtDedupTest, ExecutingTaskTest, ExperimentalDesignImportDuplicateValueTest, ExperimentalDesignImporterTest, ExpressionAnalysisResultSetServiceTest, ExpressionExperimentDeleteTest, ExpressionExperimentInCurationFilterIT, ExpressionExperimentReportServiceTest, ExpressionExperimentServiceIntegrationTest, ExpressionExperimentSetServiceTest, ExpressionExperimentSetValueObjectHelperTest, ExpressionExperimentSubSetServiceTest, ExternalDatabaseServiceTest, ExternalFileGeneLoaderServiceTest, FactorValueServiceIntegrationTest, GeneDiffExMetaAnalysisServiceTest, GeneMultifunctionalityPopulationServiceTest, GeneSetServiceTest, GeneSetValueObjectHelperTest, GeneWriteServiceTest, GenomePersisterTest, ManualAuthenticationProcessingTest, MassIndexerSmokeIntegrationTest, NCBIGene2GOAssociationParserTest, NCBIGeneLoadingTest, PersisterTest, PrincipalTest, RetryTest, SampleCoexpressionAnalysisServiceTest, SecureValueObjectAuthorizationTest, SecurityServiceTest, SimpleExpressionDataLoaderServiceTest, SplitExperimentTest, StrictBeanDefinitionValidatorTest, TaxonLoaderTest, TaxonUtilsTest, TwoChannelMissingValuesTest, TwoWayAnovaWithInteractionTest2, UserGroupServiceTest, WhatsNewServiceTest
@Deprecated
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
public abstract class BaseSpringContextTest5
extends BaseIntegrationTest5
Deprecated.
JUnit 5 (Jupiter) counterpart of
BaseSpringContextTest.
Identical helper API to BaseSpringContextTest; the differences are
structural:
- Extends
BaseIntegrationTest5(Jupiter), not the JUnit 4 base. - The JUnit 4
MockitoRuleis replaced by@ExtendWith(MockitoExtension.class).Strictness.LENIENTmatches the JUnit 4 rule's default behaviour so downstream tests with unused stubs don't break on the flip.
- Author:
- pavlidis
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayDesignPersisterDeprecated.protected ExternalDatabaseServiceDeprecated.protected final org.apache.commons.logging.LogDeprecated.protected PersisterHelperDeprecated.Persister-shrink S4b: retained for subclasses that still inject directly via the inherited field (migrated alongside their own persisterHelper sites in the junit5 batch agents).protected TaxonServiceDeprecated.protected PersistentDummyObjectHelperDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<Analysis> Deprecated.Create testAnalysisfor the given expression experiment.protected intcountRowsInTable(String tableName) Deprecated.Count the rows in the given table.protected intdeleteFromTables(String... names) Deprecated.Convenience method for deleting all rows from the specified tables.protected org.springframework.jdbc.core.JdbcTemplateDeprecated.protected ExpressionExperimentDeprecated.Deprecated.Obtain a taxon by its common name.protected BioSequenceDeprecated.protected ArrayDesigngetTestPersistentArrayDesign(int numCompositeSequences, boolean randomNames) Deprecated.Convenience method to provide an ArrayDesign that can be used to fill non-nullable associations in test objects.protected ArrayDesigngetTestPersistentArrayDesign(int numCompositeSequences, boolean randomNames, boolean doSequence, boolean readOnly) Deprecated.protected ArrayDesigngetTestPersistentArrayDesign(List<String> probeNames, Taxon taxon) Deprecated.protected ExpressionExperimentDeprecated.protected ExpressionExperimentgetTestPersistentBasicExpressionExperiment(ArrayDesign arrayDesign) Deprecated.protected BibliographicReferencegetTestPersistentBibliographicReference(String accession) Deprecated.protected BioAssayDeprecated.protected BioAssayDeprecated.protected BioMaterialDeprecated.protected BioMaterialDeprecated.protected BioSequenceDeprecated.protected BioSequenceDeprecated.getTestPersistentBioSequence2GeneProducts(BioSequence bioSequence) Deprecated.protected BlatResultgetTestPersistentBlatResult(BioSequence querySequence) Deprecated.protected BlatResultgetTestPersistentBlatResult(BioSequence querySequence, Taxon taxon) Deprecated.protected ExpressionExperimentgetTestPersistentCompleteExpressionExperiment(boolean readOnly) Deprecated.protected ExpressionExperimentDeprecated.protected ExpressionExperimentDeprecated.protected ContactDeprecated.protected DatabaseEntryDeprecated.protected DatabaseEntryDeprecated.protected DatabaseEntrygetTestPersistentDatabaseEntry(String accession, String ed) Deprecated.protected DatabaseEntrygetTestPersistentDatabaseEntry(String accession, ExternalDatabase ed) Deprecated.protected DatabaseEntryDeprecated.protected ExpressionExperimentDeprecated.protected ExpressionExperimentDeprecated.protected GeneDeprecated.getTestPersistentGene(Taxon taxon) Deprecated.protected GeneProductDeprecated.protected QuantitationTypeDeprecated.Deprecated.Convenience shortcut for RandomStringUtils.insecure().nextAlphabetic( 10 ) (or something similar to that)protected voidDeprecated.Restore to default.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidDeprecated.protected voidsetTestCollectionSize(int size) Deprecated.Change the number of elements created in collections (basically controls the size of test data sets).Methods inherited from class BaseIntegrationTest5
setUpAuthentication, tearDownSecurityContext
-
Field Details
-
log
protected final org.apache.commons.logging.Log logDeprecated. -
externalDatabaseService
Deprecated. -
persisterHelper
Deprecated.Persister-shrink S4b: retained for subclasses that still inject directly via the inherited field (migrated alongside their own persisterHelper sites in the junit5 batch agents). New code should prefer typed beans likeArrayDesignPersister. -
arrayDesignPersister
Deprecated. -
taxonService
Deprecated. -
testHelper
Deprecated.
-
-
Constructor Details
-
BaseSpringContextTest5
public BaseSpringContextTest5()Deprecated.
-
-
Method Details
-
getJdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()Deprecated. -
getTaxon
-
getTestPersistentGene
-
getTestPersistentBioSequence2GeneProducts
public Set<BioSequence2GeneProduct> getTestPersistentBioSequence2GeneProducts(BioSequence bioSequence) Deprecated. -
randomName
Deprecated.Convenience shortcut for RandomStringUtils.insecure().nextAlphabetic( 10 ) (or something similar to that)- Returns:
- random alphabetic string
-
addTestAnalyses
Deprecated.Create testAnalysisfor the given expression experiment.- Parameters:
ee- expression experiment to use for creating test analyses- Returns:
- a collection of persisted analyses that were created
-
countRowsInTable
Deprecated.Count the rows in the given table.- Parameters:
tableName- table name to count rows in- Returns:
- the number of rows in the table
-
deleteFromTables
Deprecated.Convenience method for deleting all rows from the specified tables. Use with caution outside of a transaction!- Parameters:
names- the names of the tables from which to remove- Returns:
- the total number of rows deleted from all specified tables
-
getTestPersistentGene
Deprecated. -
getTestPersistentArrayDesign
Deprecated.Convenience method to provide an ArrayDesign that can be used to fill non-nullable associations in test objects. -
getTestPersistentArrayDesign
protected ArrayDesign getTestPersistentArrayDesign(int numCompositeSequences, boolean randomNames, boolean doSequence, boolean readOnly) Deprecated. -
getTestPersistentArrayDesign
Deprecated. -
getTestPersistentBasicExpressionExperiment
Deprecated. -
getTestPersistentBasicExpressionExperiment
Deprecated. -
getTestPersistentBibliographicReference
Deprecated. -
getTestPersistentBioAssay
Deprecated. -
getTestPersistentBioAssay
Deprecated. -
getTestPersistentBioMaterial
Deprecated. -
getTestPersistentBioMaterial
Deprecated. -
getTestPersistentBioSequence
Deprecated. -
getTestPersistentBioSequence
Deprecated. -
getTestNonPersistentBioSequence
Deprecated. -
getTestPersistentBlatResult
Deprecated. -
getTestPersistentBlatResult
Deprecated. -
getTestPersistentCompleteExpressionExperiment
Deprecated. -
getTestPersistentCompleteExpressionExperimentWithSequences
Deprecated. -
getNewTestPersistentCompleteExpressionExperiment
Deprecated. -
getTestPersistentCompleteExpressionExperimentWithSequences
protected ExpressionExperiment getTestPersistentCompleteExpressionExperimentWithSequences(ExpressionExperiment prototype) Deprecated. -
getTestPersistentContact
Deprecated. -
getTestPersistentDatabaseEntry
Deprecated. -
getTestPersistentDatabaseEntry
Deprecated. -
getTestPersistentDatabaseEntry
Deprecated. -
getTestPersistentDatabaseEntry
Deprecated. -
getTestPersistentDatabaseEntry
Deprecated. -
getTestPersistentExpressionExperiment
Deprecated. -
getTestPersistentExpressionExperiment
Deprecated. -
getTestPersistentGeneProduct
Deprecated. -
getTestPersistentQuantitationType
Deprecated. -
resetTestCollectionSize
protected void resetTestCollectionSize()Deprecated.Restore to default. -
runAsAdmin
protected void runAsAdmin()Deprecated.- See Also:
-
runAsAgent
protected void runAsAgent()Deprecated.- See Also:
-
runAsUser
-
runAsUser
-
runAsAnonymous
protected void runAsAnonymous()Deprecated.- See Also:
-
setTestCollectionSize
protected void setTestCollectionSize(int size) Deprecated.Change the number of elements created in collections (basically controls the size of test data sets). This need not be called unless the test needs larger data sets. Call resetTestCollectionSize after you are done.- Parameters:
size- size
-
BaseIntegrationTest5for new tests