Class ExpressionExperimentBibRefFinderTest
java.lang.Object
ubic.gemma.core.loader.entrez.pubmed.ExpressionExperimentBibRefFinderTest
Resolution is exercised against a stubbed
GeoBrowser rather than live Entrez.
These assertions used to be driven by feeding SOFT text to a package-private parser, because the
finder scraped acc.cgi and had no seam. It now goes through esearch/esummary
via GeoBrowser, which is injectable, so the same behaviours — order, de-duplication, the
empty case — are pinned at the boundary the class actually has.
- Author:
- pavlidis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLikewise for an accession GEO has no record of: we have learned nothing about its publications, which is not the same as learning that it has none.voidvoidvoidThe distinction the reCAPTCHA incident turned on.voidA record that carries no PubMed list at all is GEO stating none, not a failure.voidvoidA series listing two papers has a primary and a follow-up, and the second one has somewhere to go: the other-relevant slot.voidvoidvoidvoid
-
Constructor Details
-
ExpressionExperimentBibRefFinderTest
public ExpressionExperimentBibRefFinderTest()
-
-
Method Details
-
testTheSeriesPubMedIdIsTheAuthoritativeLink
- Throws:
IOException
-
testReturnsFirstWhenMultiple
- Throws:
IOException
-
testEveryPubMedIdIsReadableNotJustTheFirst
A series listing two papers has a primary and a follow-up, and the second one has somewhere to go: the other-relevant slot. The single-id form counted them and warned "a curator should confirm which is primary", which described work no caller could act on because the id was already gone by the time the warning was written.- Throws:
IOException
-
testARepeatedIdIsOnePaper
- Throws:
IOException
-
testANonNumericIdIsSkippedRatherThanFatal
- Throws:
IOException
-
testNoPublicationIsAnEmptyListNotAZero
- Throws:
IOException
-
testNoPublicationIsMinusOneForTheSingleIdForm
- Throws:
IOException
-
testANonSeriesAccessionIsEmpty
- Throws:
IOException
-
testAnUnreadableGeoThrowsRatherThanLookingLikeNoPublication
The distinction the reCAPTCHA incident turned on. GEO being unreadable must not arrive as an empty list, because callers write "GEO states no publication" findings off an empty list —VerifyPublicationEvidenceClirecordsgeo_states_nonewith a dated evidence string. An unknown answer throws instead, so no finding can be built from it.- Throws:
IOException
-
testAnAbsentRecordThrowsRatherThanLookingLikeNoPublication
Likewise for an accession GEO has no record of: we have learned nothing about its publications, which is not the same as learning that it has none.- Throws:
IOException
-
testARecordWithNoPubMedListIsEmpty
A record that carries no PubMed list at all is GEO stating none, not a failure.- Throws:
IOException
-