From d34b0bc212380ceaf649339226f4a7c59298b905 Mon Sep 17 00:00:00 2001 From: Malte Meister Date: Fri, 9 Apr 2021 12:29:08 +0200 Subject: [PATCH] fix conflicting wiki page titles in tests --- src/test/java/org/gitlab4j/api/TestWikisApi.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/gitlab4j/api/TestWikisApi.java b/src/test/java/org/gitlab4j/api/TestWikisApi.java index edb6a0f97..974d99eab 100644 --- a/src/test/java/org/gitlab4j/api/TestWikisApi.java +++ b/src/test/java/org/gitlab4j/api/TestWikisApi.java @@ -114,11 +114,11 @@ public void testCreate() throws GitLabApiException { @Test public void testUpdate() throws GitLabApiException { - String title = TEST_WIKI_TITLE_PREFIX + "Test createWikiPage()"; + String title = TEST_WIKI_TITLE_PREFIX + "Test updateWikiPage()"; WikiPage wikiPage = createWikiPage(title, testContent); assertNotNull(wikiPage); - title = TEST_WIKI_TITLE_PREFIX + "Test updateWikiPage()"; + title = TEST_WIKI_TITLE_PREFIX + "Test updateWikiPage() updated title"; wikiPage = gitLabApi.getWikisApi().updatePage(testProject, wikiPage.getSlug(), title, "some content"); assertEquals(title, wikiPage.getTitle()); assertEquals("some content", wikiPage.getContent()); @@ -142,7 +142,7 @@ public void testListWikiPages() throws GitLabApiException { @Test public void testDeleteWikiPage() throws GitLabApiException { - String title = TEST_WIKI_TITLE_PREFIX + "Test listWikiPages()"; + String title = TEST_WIKI_TITLE_PREFIX + "Test deleteWikiPage()"; WikiPage createdWikiPage = createWikiPage(title, testContent); assertNotNull(createdWikiPage); @@ -156,7 +156,7 @@ public void testDeleteWikiPage() throws GitLabApiException { @Test public void testAttachment() throws GitLabApiException { - String title = TEST_WIKI_TITLE_PREFIX + "Test createWikiPage()"; + String title = TEST_WIKI_TITLE_PREFIX + "Test uploadWikiAttachment()"; WikiPage wikiPage = createWikiPage(title, testContent); assertNotNull(wikiPage); @@ -168,7 +168,7 @@ public void testAttachment() throws GitLabApiException { @Test public void testAttachmentWithBranch() throws GitLabApiException { - String title = TEST_WIKI_TITLE_PREFIX + "Test createWikiPage()"; + String title = TEST_WIKI_TITLE_PREFIX + "Test uploadWikiAttachmentWithBranch()"; WikiPage wikiPage = createWikiPage(title, testContent); assertNotNull(wikiPage);