-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement two separate builders for PullRequest and Repository, resolves
- Loading branch information
1 parent
06702bd
commit b4f8d35
Showing
24 changed files
with
570 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
import io.quarkiverse.githubapp.testing.GitHubAppTest; | ||
import io.quarkus.test.junit.QuarkusTest; | ||
import io.xstefank.wildfly.bot.model.RuntimeConstants; | ||
import io.xstefank.wildfly.bot.utils.MockedContext; | ||
import io.xstefank.wildfly.bot.utils.MockedGHPullRequest; | ||
import io.xstefank.wildfly.bot.utils.PullRequestJson; | ||
import org.apache.commons.io.IOUtils; | ||
import org.junit.jupiter.api.BeforeAll; | ||
|
@@ -59,8 +59,8 @@ void testUpdateIncorrectlyIndentedFile() throws IOException { | |
- [email protected]""", | ||
"UTF-8")); | ||
|
||
MockedContext.builder(pullRequestJson.id()) | ||
.prFiles(".github/wildfly-bot.yml") | ||
MockedGHPullRequest.builder(pullRequestJson.id()) | ||
.files(".github/wildfly-bot.yml") | ||
.mock(mocks); | ||
}) | ||
.when().payloadFromString(pullRequestJson.jsonString()) | ||
|
@@ -99,8 +99,8 @@ void testUpdateToCorrectFile() throws IOException { | |
- [email protected]""", | ||
"UTF-8")); | ||
|
||
MockedContext.builder(pullRequestJson.id()) | ||
.prFiles(".github/wildfly-bot.yml") | ||
MockedGHPullRequest.builder(pullRequestJson.id()) | ||
.files(".github/wildfly-bot.yml") | ||
.mock(mocks); | ||
}) | ||
.when().payloadFromString(pullRequestJson.jsonString()) | ||
|
@@ -137,8 +137,8 @@ void testUpdateWithIncorrectRulesFile() throws IOException { | |
- [email protected]""", | ||
"UTF-8")); | ||
|
||
MockedContext.builder(pullRequestJson.id()) | ||
.prFiles(".github/wildfly-bot.yml") | ||
MockedGHPullRequest.builder(pullRequestJson.id()) | ||
.files(".github/wildfly-bot.yml") | ||
.mock(mocks); | ||
}) | ||
.when().payloadFromString(pullRequestJson.jsonString()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.