Search in sources :

Example 1 with Cardinality

use of org.exist.xquery.Cardinality in project exist by eXist-db.

the class SubSequenceRangeTest method getCardinality.

@Test
public void getCardinality() {
    final Cardinality expectedCardinality;
    if (expectedSubsequenceLength == 0) {
        expectedCardinality = Cardinality.EMPTY_SEQUENCE;
    } else if (expectedSubsequenceLength == 1) {
        expectedCardinality = Cardinality.EXACTLY_ONE;
    } else {
        expectedCardinality = Cardinality._MANY;
    }
    assertEquals(expectedCardinality, getSubsequence().getCardinality());
}
Also used : Cardinality(org.exist.xquery.Cardinality) Test(org.junit.Test)

Aggregations

Cardinality (org.exist.xquery.Cardinality)1 Test (org.junit.Test)1