Class StatementValueObjectTest
java.lang.Object
ubic.gemma.model.expression.experiment.StatementValueObjectTest
Guards the design read path's provenance surface.
A Statement is a Characteristic, so its
SUPPORTING_EVIDENCE storage has always existed — but this value object did not expose it, which
meant the whole design section (factors → factor values → statements, the bulk of what curation produces)
could not answer "where did this term come from" even for rows that recorded an answer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNothing recorded is the expected reading, and must arrive as null rather than as an empty or an error.voidEvidence is provenance, not identity.voidvoidA malformed payload must not propagate a parse failure into a read response.
-
Constructor Details
-
StatementValueObjectTest
public StatementValueObjectTest()
-
-
Method Details
-
testSupportingEvidenceIsReadBackFromTheStatement
@Test public void testSupportingEvidenceIsReadBackFromTheStatement() -
testAbsentSupportingEvidenceIsNull
@Test public void testAbsentSupportingEvidenceIsNull()Nothing recorded is the expected reading, and must arrive as null rather than as an empty or an error. -
testSupportingEvidenceAffectsNeitherEqualityNorOrdering
@Test public void testSupportingEvidenceAffectsNeitherEqualityNorOrdering()Evidence is provenance, not identity. The comparator is relied upon to assign annotation ids, and equality feeds statement de-duplication, so the same statement with and without recorded evidence must stay indistinguishable to both. -
testUnparseableSupportingEvidenceYieldsNullRatherThanThrowing
@Test public void testUnparseableSupportingEvidenceYieldsNullRatherThanThrowing()A malformed payload must not propagate a parse failure into a read response.
-