Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
4b96587f
Commit
4b96587f
authored
Mar 16, 2014
by
Greg Messner
Browse files
Now tests for bad JSON.
parent
37afe15d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
View file @
4b96587f
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment