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());
}
Aggregations