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
50fdfe7b
Commit
50fdfe7b
authored
Mar 02, 2014
by
Greg Messner
Browse files
Removed dependency on jsonassert.
parent
5ffec843
Changes
3
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
50fdfe7b
...
...
@@ -136,12 +136,6 @@
<version>
4.11
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.skyscreamer
</groupId>
<artifactId>
jsonassert
</artifactId>
<version>
1.2.3
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
View file @
50fdfe7b
...
...
@@ -11,7 +11,6 @@ import org.codehaus.jackson.JsonParseException;
import
org.codehaus.jackson.map.JsonMappingException
;
import
org.codehaus.jackson.map.ObjectMapper
;
import
org.codehaus.jackson.type.TypeReference
;
import
org.json.JSONException
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
...
...
@@ -257,7 +256,7 @@ public class TestGitLabApiBeans {
return
(
objectMapper
.
readValue
(
reader
,
returnType
));
}
private
<
T
>
boolean
compareJson
(
T
apiObject
,
String
file
)
throws
IOException
,
JSONException
{
private
<
T
>
boolean
compareJson
(
T
apiObject
,
String
file
)
throws
IOException
{
InputStreamReader
reader
=
new
InputStreamReader
(
GitLabApi
.
class
.
getResourceAsStream
(
file
+
".json"
));
String
objectJson
=
jacksonJson
.
marshal
(
apiObject
);
...
...
src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java
View file @
50fdfe7b
...
...
@@ -9,7 +9,6 @@ import org.codehaus.jackson.JsonNode;
import
org.codehaus.jackson.JsonParseException
;
import
org.codehaus.jackson.map.JsonMappingException
;
import
org.codehaus.jackson.map.ObjectMapper
;
import
org.json.JSONException
;
import
org.junit.BeforeClass
;
import
org.junit.Test
;
...
...
@@ -69,7 +68,7 @@ public class TestGitLabApiEvents {
return
(
objectMapper
.
readValue
(
reader
,
returnType
));
}
private
<
T
>
boolean
compareJson
(
T
apiObject
,
String
file
)
throws
IOException
,
JSONException
{
private
<
T
>
boolean
compareJson
(
T
apiObject
,
String
file
)
throws
IOException
{
InputStreamReader
reader
=
new
InputStreamReader
(
GitLabApi
.
class
.
getResourceAsStream
(
file
+
".json"
));
String
objectJson
=
jacksonJson
.
marshal
(
apiObject
);
...
...
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