Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
11 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Removed dependency on jsonassert.
parent
5ffec843
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pom.xml
+0
-6
pom.xml
src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
+1
-2
...test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java
+1
-2
...est/java/com/messners/gitlab/api/TestGitLabApiEvents.java
with
2 additions
and
10 deletions
+2
-10
pom.xml
+
0
-
6
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>
This diff is collapsed.
Click to expand it.
src/test/java/com/messners/gitlab/api/TestGitLabApiBeans.java
+
1
-
2
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
);
...
...
This diff is collapsed.
Click to expand it.
src/test/java/com/messners/gitlab/api/TestGitLabApiEvents.java
+
1
-
2
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
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets