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
c9fe3159
Commit
c9fe3159
authored
Jun 07, 2019
by
Greg Messner
Browse files
Reordered asserts in testCreateImpersonationToken().
parent
1a6f7e7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestUserApi.java
View file @
c9fe3159
...
@@ -230,8 +230,8 @@ public class TestUserApi extends AbstractIntegrationTest {
...
@@ -230,8 +230,8 @@ public class TestUserApi extends AbstractIntegrationTest {
assertNotNull
(
token
);
assertNotNull
(
token
);
assertNotNull
(
token
.
getId
());
assertNotNull
(
token
.
getId
());
assertEquals
(
TEST_IMPERSONATION_TOKEN_NAME
,
token
.
getName
());
assertEquals
(
TEST_IMPERSONATION_TOKEN_NAME
,
token
.
getName
());
assertEquals
(
scopes
.
length
,
token
.
getScopes
().
size
());
assertEquals
(
expiresAt
.
getTime
(),
token
.
getExpiresAt
().
getTime
());
assertEquals
(
expiresAt
.
getTime
(),
token
.
getExpiresAt
().
getTime
());
assertEquals
(
scopes
.
length
,
token
.
getScopes
().
size
());
assertThat
(
token
.
getScopes
(),
containsInAnyOrder
(
scopes
));
assertThat
(
token
.
getScopes
(),
containsInAnyOrder
(
scopes
));
}
finally
{
}
finally
{
...
...
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