2929import static org .junit .Assert .assertTrue ;
3030import static org .junit .Assume .assumeTrue ;
3131
32+ import java .util .Arrays ;
3233import java .util .List ;
3334import java .util .Optional ;
3435
@@ -169,7 +170,8 @@ public void testCreate() throws GitLabApiException {
169170 .withMergeRequestsEnabled (true )
170171 .withWikiEnabled (true )
171172 .withSnippetsEnabled (true )
172- .withVisibility (Visibility .PUBLIC );
173+ .withVisibility (Visibility .PUBLIC )
174+ .withTagList (Arrays .asList ("tag1" ,"tag2" ));
173175
174176 Project newProject = gitLabApi .getProjectApi ().createProject (project );
175177 assertNotNull (newProject );
@@ -179,6 +181,7 @@ public void testCreate() throws GitLabApiException {
179181 assertEquals (project .getMergeRequestsEnabled (), newProject .getMergeRequestsEnabled ());
180182 assertEquals (project .getWikiEnabled (), newProject .getWikiEnabled ());
181183 assertEquals (project .getSnippetsEnabled (), newProject .getSnippetsEnabled ());
184+ assertEquals (project .getTagList (), newProject .getTagList ());
182185 assertTrue (Visibility .PUBLIC == newProject .getVisibility () || Boolean .TRUE == newProject .getPublic ());
183186 }
184187
@@ -192,7 +195,8 @@ public void testUpdate() throws GitLabApiException {
192195 .withMergeRequestsEnabled (true )
193196 .withWikiEnabled (true )
194197 .withSnippetsEnabled (true )
195- .withVisibility (Visibility .PUBLIC );
198+ .withVisibility (Visibility .PUBLIC )
199+ .withTagList (Arrays .asList ("tag1" ,"tag2" ));
196200
197201 Project newProject = gitLabApi .getProjectApi ().createProject (project );
198202 assertNotNull (newProject );
@@ -202,6 +206,7 @@ public void testUpdate() throws GitLabApiException {
202206 assertEquals (project .getMergeRequestsEnabled (), newProject .getMergeRequestsEnabled ());
203207 assertEquals (project .getWikiEnabled (), newProject .getWikiEnabled ());
204208 assertEquals (project .getSnippetsEnabled (), newProject .getSnippetsEnabled ());
209+ assertEquals (project .getTagList (), newProject .getTagList ());
205210 assertTrue (Visibility .PUBLIC == newProject .getVisibility () || Boolean .TRUE == newProject .getPublic ());
206211
207212 project = new Project ()
0 commit comments