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
626ed2a5
Commit
626ed2a5
authored
Mar 14, 2020
by
Greg Messner
Browse files
Mods for hamcrest update.
parent
f6af21f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestUnitMergeRequestApi.java
View file @
626ed2a5
package
org.gitlab4j.api
;
import
static
org
.
hamcrest
.
MatcherAssert
.
assertThat
;
import
static
org
.
hamcrest
.
Matchers
.
hasEntry
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
mockito
.
ArgumentMatchers
.
any
;
import
static
org
.
mockito
.
Mockito
.
when
;
import
static
org
.
mockito
.
MockitoAnnotations
.
initMocks
;
...
...
src/test/java/org/gitlab4j/api/TestUserApi.java
View file @
626ed2a5
package
org.gitlab4j.api
;
import
static
org
.
hamcrest
.
Matchers
.
containsInAnyOrder
;
import
static
org
.
hamcrest
.
MatcherAssert
.
assertThat
;
import
static
org
.
hamcrest
.
Matchers
.
contains
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
junit
.
Assert
.
assertNotEquals
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNull
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assume
.
assumeNotNull
;
import
static
org
.
junit
.
Assume
.
assumeTrue
;
...
...
@@ -283,7 +283,7 @@ public class TestUserApi extends AbstractIntegrationTest {
assertEquals
(
TEST_IMPERSONATION_TOKEN_NAME
,
token
.
getName
());
assertEquals
(
expiresAt
.
getTime
(),
token
.
getExpiresAt
().
getTime
());
assertEquals
(
scopes
.
length
,
token
.
getScopes
().
size
());
assertThat
(
token
.
getScopes
(),
contains
InAnyOrder
(
scopes
));
assertThat
(
token
.
getScopes
(),
contains
(
scopes
));
}
finally
{
if
(
user
!=
null
&&
token
!=
null
)
{
...
...
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