assertNull(e);
}
KeyNoteCL cl = new KeyNoteCL(config, report);
try {
cl.sigVerify("101", fileToOk);
} catch (InterruptedException e) {
assertNull(e);
} catch (KeyNoteCLException e) {
assertNull(e);
} catch (SignatureVerificationException e) {
assertNull(e);
} catch (UnknownCLException e) {
assertNull(e);
} catch (SyntaxError e) {
assertNull(e);
} catch (IOException e) {
assertNull(e);
}
boolean assertExceptionHit = false;
//This test should failwith a syntax error
try {
cl.sigVerify("100", syntaxErrorFile);
} catch (InterruptedException e) {
assertNull(e);
} catch (KeyNoteCLException e) {
assertNull(e);
} catch (SignatureVerificationException e) {
assertNull(e);
} catch (UnknownCLException e) {
assertNull(e);
} catch (SyntaxError e) {
assertExceptionHit = true;
} catch (IOException e) {
assertNull(e);
}
assertTrue(assertExceptionHit);
assertExceptionHit = false;
try {
cl.sigVerify("100", falseSignatureFile);
} catch (InterruptedException e) {
assertNull(e);
} catch (KeyNoteCLException e) {
assertNull(e);
} catch (SignatureVerificationException e) {