use of org.javarosa.core.model.data.helper.Selection in project javarosa by opendatakit.
the class SelectMultiDataTests method testBadDataTypes.
public void testBadDataTypes() {
boolean failure = false;
SelectMultiData data = new SelectMultiData(firstTwo);
try {
data.setValue(invalid);
data = new SelectMultiData(invalid);
} catch (Exception e) {
failure = true;
}
assertTrue("SelectMultiData did not throw a proper exception while being set to invalid data.", failure);
Selection[] values = new Selection[firstTwo.size()];
firstTwo.toArray(values);
assertVectorIdentity("Ensure not overwritten: ", (List<Selection>) data.getValue(), values);
}
Aggregations