Class BioMaterialValueObjectStatementTest

java.lang.Object
ubic.gemma.model.expression.biomaterial.BioMaterialValueObjectStatementTest

public class BioMaterialValueObjectStatementTest extends Object
A sample annotation survives the read with whatever was said about it.
Author:
gembro
  • Constructor Details

    • BioMaterialValueObjectStatementTest

      public BioMaterialValueObjectStatementTest()
  • Method Details

    • aPredicatedSampleAnnotationKeepsItsPredicateAndObject

      @Test public void aPredicatedSampleAnnotationKeepsItsPredicateAndObject()
      🛑 A predicated sample annotation used to be flattened to its subject on every read: CharacteristicValueObject has no predicate or object, and it was the only shape the sample payload carried. A curator could write one through POST /datasets/{id}/samples/{sid}/annotations — which builds a Statement — and never see it again.
    • aBareSampleAnnotationIsListedWithNoPredicate

      @Test public void aBareSampleAnnotationIsListedWithNoPredicate()
      And a bare one is listed too, with nothing said about it — one collection, not two kinds of annotation.