+ "matching.MismatchTest.use_takes", false);
}
public void run() throws Exception {
try {
final Entry entry = writeOne();
logger.log(Level.INFO, "Wrote:" + entry);
spaceSet();
// Read/take back under mismatches
TemplateGenerator gen = new MismatchTmplGen(entry, classList);
Entry tmpl;
int count = 0;
while ((tmpl = gen.next()) != null) {
count++;
logger.log(Level.INFO, "Query#" + count + " with " + tmpl);
Entry rslt;
if (useRead) {
rslt = spaceRead(tmpl, null, queryTimeOut);
} else {
rslt = spaceTake(tmpl, null, queryTimeOut);
}
if (rslt != null) {
throw new TestException(
"Got match from a template we should not have");
}
}
// Lets make sure it realy was their
final Entry rslt = spaceRead(entry, null, queryTimeOut);
if (rslt == null) {
throw new TestException("Orginal write did not work");
}
} catch (UnusableEntryException e) {