Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix conflicting wiki page titles in tests #684

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix conflicting wiki page titles in tests
maltem-za committed Apr 9, 2021
commit d34b0bc212380ceaf649339226f4a7c59298b905
10 changes: 5 additions & 5 deletions src/test/java/org/gitlab4j/api/TestWikisApi.java
Original file line number Diff line number Diff line change
@@ -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);