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
8ebb75c1
Commit
8ebb75c1
authored
Jun 06, 2019
by
Greg Messner
Browse files
Added test for RegistryRepository (#368).
parent
dbd6b839
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestGitLabApiBeans.java
View file @
8ebb75c1
...
@@ -74,6 +74,7 @@ import org.gitlab4j.api.models.ProjectHook;
...
@@ -74,6 +74,7 @@ import org.gitlab4j.api.models.ProjectHook;
import
org.gitlab4j.api.models.ProjectUser
;
import
org.gitlab4j.api.models.ProjectUser
;
import
org.gitlab4j.api.models.ProtectedBranch
;
import
org.gitlab4j.api.models.ProtectedBranch
;
import
org.gitlab4j.api.models.PushRules
;
import
org.gitlab4j.api.models.PushRules
;
import
org.gitlab4j.api.models.RegistryRepository
;
import
org.gitlab4j.api.models.Runner
;
import
org.gitlab4j.api.models.Runner
;
import
org.gitlab4j.api.models.RunnerDetail
;
import
org.gitlab4j.api.models.RunnerDetail
;
import
org.gitlab4j.api.models.Session
;
import
org.gitlab4j.api.models.Session
;
...
@@ -329,6 +330,12 @@ public class TestGitLabApiBeans {
...
@@ -329,6 +330,12 @@ public class TestGitLabApiBeans {
assertTrue
(
compareJson
(
pushRule
,
"push-rule.json"
));
assertTrue
(
compareJson
(
pushRule
,
"push-rule.json"
));
}
}
@Test
public
void
testRegistryRepositories
()
throws
Exception
{
List
<
RegistryRepository
>
repos
=
unmarshalResourceList
(
RegistryRepository
.
class
,
"registry-repositories.json"
);
assertTrue
(
compareJson
(
repos
,
"registry-repositories.json"
));
}
@Test
@Test
public
void
testRunnerDetail
()
throws
Exception
{
public
void
testRunnerDetail
()
throws
Exception
{
RunnerDetail
runnerDetail
=
unmarshalResource
(
RunnerDetail
.
class
,
"runner-detail.json"
);
RunnerDetail
runnerDetail
=
unmarshalResource
(
RunnerDetail
.
class
,
"runner-detail.json"
);
...
...
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