Class CharacteristicValueObjectTest

java.lang.Object
ubic.gemma.model.common.description.CharacteristicValueObjectTest

public class CharacteristicValueObjectTest extends Object
Author:
mjacobson
  • Constructor Details

    • CharacteristicValueObjectTest

      public CharacteristicValueObjectTest()
  • Method Details

    • setUp

      @BeforeEach protected void setUp() throws Exception
      Throws:
      Exception
    • 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()
      The SUPPORTING_EVIDENCE column 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. An ExperimentalFactor'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()