Commit 4b96587f authored by Greg Messner's avatar Greg Messner
Browse files

Now tests for bad JSON.

parent 37afe15d
......@@ -52,7 +52,11 @@ public class TestGitLabApiBeans {
try {
Branch branch = makeFakeApiCall(Branch.class, "branch");
assertTrue(compareJson(branch, "branch"));
assertTrue(compareJson(branch, "branch"));
branch = makeFakeApiCall(Branch.class, "bad-branch");
assertTrue(!Branch.isValid(branch));
} catch (Exception e) {
e.printStackTrace();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment