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
5e4957ab
Commit
5e4957ab
authored
Jul 25, 2019
by
Greg Messner
Browse files
Improved testGetTagsSearch() unit test (#417).
parent
52483ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/org/gitlab4j/api/TestTagsApi.java
View file @
5e4957ab
package
org.gitlab4j.api
;
package
org.gitlab4j.api
;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
...
@@ -185,8 +184,12 @@ public class TestTagsApi extends AbstractIntegrationTest {
...
@@ -185,8 +184,12 @@ public class TestTagsApi extends AbstractIntegrationTest {
String
tagName
=
tags
.
get
(
0
).
getName
();
String
tagName
=
tags
.
get
(
0
).
getName
();
tags
=
gitLabApi
.
getTagsApi
().
getTags
(
testProject
,
null
,
null
,
tagName
);
tags
=
gitLabApi
.
getTagsApi
().
getTags
(
testProject
,
null
,
null
,
tagName
);
assertNotNull
(
tags
);
assertNotNull
(
tags
);
assertTrue
(
tags
.
size
()
>
0
);
assertTrue
(
tags
.
size
()
==
1
);
assertEquals
(
tagName
,
tags
.
get
(
0
).
getName
());
assertEquals
(
tagName
,
tags
.
get
(
0
).
getName
());
tags
=
gitLabApi
.
getTagsApi
().
getTags
(
testProject
,
null
,
null
,
"NOT_FOUND_TAG_NAME"
);
assertNotNull
(
tags
);
assertTrue
(
tags
.
isEmpty
());
}
}
@Test
@Test
...
...
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