From 74f407a26b21daf7688c657bfe4e2c57a31e0cec Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 1 Sep 2023 01:59:59 +0300 Subject: [PATCH] Fix code coverage --- pom.xml | 1 + src/test/java/org/kohsuke/github/EnumTest.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/pom.xml b/pom.xml index 154f516e0b..6809e98228 100644 --- a/pom.xml +++ b/pom.xml @@ -185,6 +185,7 @@ org.kohsuke.github.GHCommitSearchBuilder org.kohsuke.github.GHRepositorySearchBuilder org.kohsuke.github.GHUserSearchBuilder + org.kohsuke.github.GHPullRequestSearchBuilder org.kohsuke.github.GHBranchProtection.RequiredSignatures diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java index 59cf1f4d44..4073777fff 100644 --- a/src/test/java/org/kohsuke/github/EnumTest.java +++ b/src/test/java/org/kohsuke/github/EnumTest.java @@ -87,6 +87,13 @@ public void touchEnums() { assertThat(GHUserSearchBuilder.Sort.values().length, equalTo(3)); assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3)); + + assertThat(GHPullRequestSearchBuilder.Sort.values().length, equalTo(4)); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.values().length, equalTo(4)); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.ABSENT.getStatus(), equalTo("none")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.REQUIRED.getStatus(), equalTo("required")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.APPROVED.getStatus(), equalTo("approved")); + assertThat(GHPullRequestSearchBuilder.ReviewStatus.REJECTED.getStatus(), equalTo("changes_requested")); } }