Class CharacteristicValueObjectTest
java.lang.Object
ubic.gemma.model.common.description.CharacteristicValueObjectTest
- Author:
- mjacobson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetUp()voidNothing recorded is the expected reading for most rows, and must arrive as null rather than as an error.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidEvidence is provenance, not identity.voidTheSUPPORTING_EVIDENCEcolumn has always existed on every characteristic; this value object simply never surfaced it, which left the design read path unable to answer "where did this come from" even for rows that recorded it.
-
Constructor Details
-
CharacteristicValueObjectTest
public CharacteristicValueObjectTest()
-
-
Method Details
-
setUp
-
testEqualsA
@Test public void testEqualsA() -
testEqualsB
@Test public void testEqualsB() -
testEqualsC
@Test public void testEqualsC() -
testEqualsD
@Test public void testEqualsD() -
testEqualsE
@Test public void testEqualsE() -
testEqualsF
@Test public void testEqualsF() -
testEqualsG
@Test public void testEqualsG() -
testSupportingEvidenceIsReadBackFromTheCharacteristic
@Test public void testSupportingEvidenceIsReadBackFromTheCharacteristic()TheSUPPORTING_EVIDENCEcolumn has always existed on every characteristic; this value object simply never surfaced it, which left the design read path unable to answer "where did this come from" even for rows that recorded it. AnExperimentalFactor's category is a characteristic like any other, so this is the factor-level trace. -
testAbsentSupportingEvidenceIsNull
@Test public void testAbsentSupportingEvidenceIsNull()Nothing recorded is the expected reading for most rows, and must arrive as null rather than as an error. -
testSupportingEvidenceDoesNotAffectEquality
@Test public void testSupportingEvidenceDoesNotAffectEquality()Evidence is provenance, not identity. Two value objects for the same term, one carrying recorded evidence and one not, must stay equal — the search paths de-duplicate on this equality, so including the field would silently split a term into two. -
testCompareToNull
@Test public void testCompareToNull() -
testCompareToCategory
@Test public void testCompareToCategory() -
testCompareToTaxon
@Test public void testCompareToTaxon() -
testCompareToValue
@Test public void testCompareToValue() -
testCompareToValueUri
@Test public void testCompareToValueUri() -
testCompareToOrdering
@Test public void testCompareToOrdering()
-