Class BibliographicReferenceServiceTest
java.lang.Object
ubic.gemma.core.util.test.BaseTest5
ubic.gemma.core.util.test.BaseIntegrationTest5
ubic.gemma.core.util.test.BaseSpringContextTest5
ubic.gemma.persistence.service.common.description.BibliographicReferenceServiceTest
This class tests the bibliographic reference data access object. It is also used to test some of the Hibernate
features.
- Author:
- pavlidis
-
Field Summary
Fields inherited from class BaseSpringContextTest5
arrayDesignPersister, externalDatabaseService, log, persisterHelper, taxonService, testHelper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()final voidtestfind()final voidfinal voidProd has duplicate BibliographicReference rows for the same PubMed accession; the external-id lookups must return one (the lowest-id) rather than throwingNonUniqueResultException(which surfaced as a 500 onPUT /datasets/{id}/publications), andfindmust too sofindOrCreatedoesn't add yet another duplicate.voidMethods inherited from class BaseSpringContextTest5
addTestAnalyses, countRowsInTable, deleteFromTables, getJdbcTemplate, getNewTestPersistentCompleteExpressionExperiment, getTaxon, getTestNonPersistentBioSequence, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentArrayDesign, getTestPersistentBasicExpressionExperiment, getTestPersistentBasicExpressionExperiment, getTestPersistentBibliographicReference, getTestPersistentBioAssay, getTestPersistentBioAssay, getTestPersistentBioMaterial, getTestPersistentBioMaterial, getTestPersistentBioSequence, getTestPersistentBioSequence, getTestPersistentBioSequence2GeneProducts, getTestPersistentBlatResult, getTestPersistentBlatResult, getTestPersistentCompleteExpressionExperiment, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentCompleteExpressionExperimentWithSequences, getTestPersistentContact, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentDatabaseEntry, getTestPersistentExpressionExperiment, getTestPersistentExpressionExperiment, getTestPersistentGene, getTestPersistentGene, getTestPersistentGeneProduct, getTestPersistentQuantitationType, randomName, resetTestCollectionSize, runAsAdmin, runAsAgent, runAsAnonymous, runAsUser, runAsUser, setTestCollectionSizeMethods inherited from class BaseIntegrationTest5
setUpAuthentication, tearDownSecurityContext
-
Constructor Details
-
BibliographicReferenceServiceTest
public BibliographicReferenceServiceTest()
-
-
Method Details
-
setUp
-
testfind
@Test public final void testfind() -
testFindByExternalIdentString
@Test public final void testFindByExternalIdentString() -
testFindByExternalIdToleratesDuplicates
@Test public final void testFindByExternalIdToleratesDuplicates()Prod has duplicate BibliographicReference rows for the same PubMed accession; the external-id lookups must return one (the lowest-id) rather than throwingNonUniqueResultException(which surfaced as a 500 onPUT /datasets/{id}/publications), andfindmust too sofindOrCreatedoesn't add yet another duplicate. -
testGetRelatedExperiments
@Test public void testGetRelatedExperiments()
-