} catch (Exception e) {
// System.out.println("\n" + e.toString());
assertTrue(false);
}
// error happens when we try and ref the missing feature
MissingFeatureInCas t = new MissingFeatureInCas(localJcas);
try {
t.setHaveThisOne(1);
} catch (Exception e) {
assertTrue(false);
}
try {
t.setMissingThisOne((float) 1.0);
assertTrue(false); // above should throw
} catch (CASRuntimeException e) {
assertTrue(e.getMessageKey().equals(CASRuntimeException.INAPPROP_FEAT));
}
} catch (Exception e) {