Class AnnotationSetPayloadCountsTest

java.lang.Object
ubic.gemma.model.common.auditAndSecurity.curation.AnnotationSetPayloadCountsTest

public class AnnotationSetPayloadCountsTest extends Object
The counts are a HINT read off a payload whose shape belongs to someone else, so what these pin is mostly the failure behaviour: everything unrecognized has to come back null rather than zero.
  • Constructor Details

    • AnnotationSetPayloadCountsTest

      public AnnotationSetPayloadCountsTest()
  • Method Details

    • readsFactorsAndTags

      @Test @DisplayName("counts the CurationDocument shape both sides speak") public void readsFactorsAndTags()
    • emptyArraysAreZero

      @Test @DisplayName("an empty array is 0 \u2014 the payload said so") public void emptyArraysAreZero()
    • unrecognizedShapeIsUnknownRatherThanZero

      @Test @DisplayName("an unrecognized shape is null, NOT zero") public void unrecognizedShapeIsUnknownRatherThanZero()
      🛑 The distinction the whole class exists for. A shape this cannot read must not report 0, because 0 reads as "this proposal changes nothing" — a wrong answer that looks plausible and that a card would print without hesitating.
    • malformedOrAbsentIsUnknown

      @Test @DisplayName("garbage and absence never throw \u2014 Gemma never promised to read this") public void malformedOrAbsentIsUnknown()