Skip to content

Commit

Permalink
add new test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Aug 16, 2023
1 parent f6cb33f commit 3144bcd
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,22 @@ public void runTest() {
results.add(result);
}

result = new TestResult();
result.testName = "Test Exception";
try {
new Rhino.Builder()
.setAccessKey("")
.setModelPath(modelFile)
.setContextPath(contextFile)
.build(getApplicationContext());
result.success = false;
result.errorMessage = "Init should have throw an exception";
} catch (RhinoException e) {
result.success = true;
} finally {
results.add(result);
}

displayTestResults(results);
}

Expand Down

0 comments on commit 3144bcd

Please sign in to comment.