Class BibliographicReferenceServiceTest


public class BibliographicReferenceServiceTest extends BaseSpringContextTest5
This class tests the bibliographic reference data access object. It is also used to test some of the Hibernate features.
Author:
pavlidis
  • Constructor Details

    • BibliographicReferenceServiceTest

      public BibliographicReferenceServiceTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp() throws Exception
      Throws:
      Exception
    • 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 throwing NonUniqueResultException (which surfaced as a 500 on PUT /datasets/{id}/publications), and find must too so findOrCreate doesn't add yet another duplicate.
    • testGetRelatedExperiments

      @Test public void testGetRelatedExperiments()