29
29
import static org .junit .Assert .assertTrue ;
30
30
import static org .junit .Assume .assumeTrue ;
31
31
32
+ import java .util .Arrays ;
32
33
import java .util .List ;
33
34
import java .util .Optional ;
34
35
@@ -169,7 +170,8 @@ public void testCreate() throws GitLabApiException {
169
170
.withMergeRequestsEnabled (true )
170
171
.withWikiEnabled (true )
171
172
.withSnippetsEnabled (true )
172
- .withVisibility (Visibility .PUBLIC );
173
+ .withVisibility (Visibility .PUBLIC )
174
+ .withTagList (Arrays .asList ("tag1" ,"tag2" ));
173
175
174
176
Project newProject = gitLabApi .getProjectApi ().createProject (project );
175
177
assertNotNull (newProject );
@@ -179,6 +181,7 @@ public void testCreate() throws GitLabApiException {
179
181
assertEquals (project .getMergeRequestsEnabled (), newProject .getMergeRequestsEnabled ());
180
182
assertEquals (project .getWikiEnabled (), newProject .getWikiEnabled ());
181
183
assertEquals (project .getSnippetsEnabled (), newProject .getSnippetsEnabled ());
184
+ assertEquals (project .getTagList (), newProject .getTagList ());
182
185
assertTrue (Visibility .PUBLIC == newProject .getVisibility () || Boolean .TRUE == newProject .getPublic ());
183
186
}
184
187
@@ -192,7 +195,8 @@ public void testUpdate() throws GitLabApiException {
192
195
.withMergeRequestsEnabled (true )
193
196
.withWikiEnabled (true )
194
197
.withSnippetsEnabled (true )
195
- .withVisibility (Visibility .PUBLIC );
198
+ .withVisibility (Visibility .PUBLIC )
199
+ .withTagList (Arrays .asList ("tag1" ,"tag2" ));
196
200
197
201
Project newProject = gitLabApi .getProjectApi ().createProject (project );
198
202
assertNotNull (newProject );
@@ -202,6 +206,7 @@ public void testUpdate() throws GitLabApiException {
202
206
assertEquals (project .getMergeRequestsEnabled (), newProject .getMergeRequestsEnabled ());
203
207
assertEquals (project .getWikiEnabled (), newProject .getWikiEnabled ());
204
208
assertEquals (project .getSnippetsEnabled (), newProject .getSnippetsEnabled ());
209
+ assertEquals (project .getTagList (), newProject .getTagList ());
205
210
assertTrue (Visibility .PUBLIC == newProject .getVisibility () || Boolean .TRUE == newProject .getPublic ());
206
211
207
212
project = new Project ()
0 commit comments