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
5e4957ab
Commit
5e4957ab
authored
5 years ago
by
Greg Messner
Browse files
Options
Download
Email Patches
Plain Diff
Improved testGetTagsSearch() unit test (#417).
parent
52483ef8
main
5.0.x
5.0.x.jdk17
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/org/gitlab4j/api/TestTagsApi.java
+5
-2
src/test/java/org/gitlab4j/api/TestTagsApi.java
with
5 additions
and
2 deletions
+5
-2
src/test/java/org/gitlab4j/api/TestTagsApi.java
+
5
-
2
View file @
5e4957ab
package
org.gitlab4j.api
;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
static
org
.
junit
.
Assert
.
assertEquals
;
import
static
org
.
junit
.
Assert
.
assertFalse
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
...
...
@@ -185,8 +184,12 @@ public class TestTagsApi extends AbstractIntegrationTest {
String
tagName
=
tags
.
get
(
0
).
getName
();
tags
=
gitLabApi
.
getTagsApi
().
getTags
(
testProject
,
null
,
null
,
tagName
);
assertNotNull
(
tags
);
assertTrue
(
tags
.
size
()
>
0
);
assertTrue
(
tags
.
size
()
==
1
);
assertEquals
(
tagName
,
tags
.
get
(
0
).
getName
());
tags
=
gitLabApi
.
getTagsApi
().
getTags
(
testProject
,
null
,
null
,
"NOT_FOUND_TAG_NAME"
);
assertNotNull
(
tags
);
assertTrue
(
tags
.
isEmpty
());
}
@Test
...
...
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