owner;
diff --git a/src/main/java/org/kohsuke/github/GHRepositoryVariable.java b/src/main/java/org/kohsuke/github/GHRepositoryVariable.java
index cc71f38a49..6a45c6cf98 100644
--- a/src/main/java/org/kohsuke/github/GHRepositoryVariable.java
+++ b/src/main/java/org/kohsuke/github/GHRepositoryVariable.java
@@ -12,6 +12,12 @@
*/
public class GHRepositoryVariable extends GitHubInteractiveObject {
+ /**
+ * Create default GHRepositoryVariable instance
+ */
+ public GHRepositoryVariable() {
+ }
+
private static final String SLASH = "/";
private static final String VARIABLE_NAMESPACE = "actions/variables";
diff --git a/src/main/java/org/kohsuke/github/GHRequestedAction.java b/src/main/java/org/kohsuke/github/GHRequestedAction.java
index 305337d022..cec1349731 100644
--- a/src/main/java/org/kohsuke/github/GHRequestedAction.java
+++ b/src/main/java/org/kohsuke/github/GHRequestedAction.java
@@ -9,6 +9,13 @@
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD", "URF_UNREAD_FIELD" },
justification = "JSON API")
public class GHRequestedAction extends GHObject {
+
+ /**
+ * Create default GHRequestedAction instance
+ */
+ public GHRequestedAction() {
+ }
+
private GHRepository owner;
private String identifier;
private String label;
diff --git a/src/main/java/org/kohsuke/github/GHStargazer.java b/src/main/java/org/kohsuke/github/GHStargazer.java
index ff6327d317..1b9862295a 100644
--- a/src/main/java/org/kohsuke/github/GHStargazer.java
+++ b/src/main/java/org/kohsuke/github/GHStargazer.java
@@ -13,6 +13,12 @@
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" }, justification = "JSON API")
public class GHStargazer {
+ /**
+ * Create default GHStargazer instance
+ */
+ public GHStargazer() {
+ }
+
private GHRepository repository;
private String starred_at;
private GHUser user;
diff --git a/src/main/java/org/kohsuke/github/GHSubscription.java b/src/main/java/org/kohsuke/github/GHSubscription.java
index 9f84161cc8..1066d51b7b 100644
--- a/src/main/java/org/kohsuke/github/GHSubscription.java
+++ b/src/main/java/org/kohsuke/github/GHSubscription.java
@@ -14,6 +14,13 @@
* @see GHThread#getSubscription() GHThread#getSubscription()
*/
public class GHSubscription extends GitHubInteractiveObject {
+
+ /**
+ * Create default GHSubscription instance
+ */
+ public GHSubscription() {
+ }
+
private String created_at, url, repository_url, reason;
private boolean subscribed, ignored;
diff --git a/src/main/java/org/kohsuke/github/GHTag.java b/src/main/java/org/kohsuke/github/GHTag.java
index b40c491332..1487256d2c 100644
--- a/src/main/java/org/kohsuke/github/GHTag.java
+++ b/src/main/java/org/kohsuke/github/GHTag.java
@@ -11,6 +11,13 @@
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
public class GHTag extends GitHubInteractiveObject {
+
+ /**
+ * Create default GHTag instance
+ */
+ public GHTag() {
+ }
+
private GHRepository owner;
private String name;
diff --git a/src/main/java/org/kohsuke/github/GHTagObject.java b/src/main/java/org/kohsuke/github/GHTagObject.java
index efd38a3918..fbf255e7c3 100644
--- a/src/main/java/org/kohsuke/github/GHTagObject.java
+++ b/src/main/java/org/kohsuke/github/GHTagObject.java
@@ -11,6 +11,13 @@
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
public class GHTagObject extends GitHubInteractiveObject {
+
+ /**
+ * Create default GHTagObject instance
+ */
+ public GHTagObject() {
+ }
+
private GHRepository owner;
private String tag;
diff --git a/src/main/java/org/kohsuke/github/GHTeam.java b/src/main/java/org/kohsuke/github/GHTeam.java
index 7ac5e7a53d..edba5e7b25 100644
--- a/src/main/java/org/kohsuke/github/GHTeam.java
+++ b/src/main/java/org/kohsuke/github/GHTeam.java
@@ -20,6 +20,12 @@
*/
public class GHTeam extends GHObject implements Refreshable {
+ /**
+ * Create default GHTeam instance
+ */
+ public GHTeam() {
+ }
+
/**
* Path for external group-related operations
*/
diff --git a/src/main/java/org/kohsuke/github/GHTeamChanges.java b/src/main/java/org/kohsuke/github/GHTeamChanges.java
index dfcbfca26b..30962bd3bf 100644
--- a/src/main/java/org/kohsuke/github/GHTeamChanges.java
+++ b/src/main/java/org/kohsuke/github/GHTeamChanges.java
@@ -14,6 +14,12 @@
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_FIELD" }, justification = "JSON API")
public class GHTeamChanges {
+ /**
+ * Create default GHTeamChanges instance
+ */
+ public GHTeamChanges() {
+ }
+
private FromString description;
private FromString name;
private FromPrivacy privacy;
@@ -60,6 +66,12 @@ public FromRepository getRepository() {
*/
public static class FromString {
+ /**
+ * Create default FromString instance
+ */
+ public FromString() {
+ }
+
private String from;
/**
@@ -77,6 +89,12 @@ public String getFrom() {
*/
public static class FromPrivacy {
+ /**
+ * Create default FromPrivacy instance
+ */
+ public FromPrivacy() {
+ }
+
private String from;
/**
@@ -94,6 +112,12 @@ public Privacy getFrom() {
*/
public static class FromRepository {
+ /**
+ * Create default FromRepository instance
+ */
+ public FromRepository() {
+ }
+
private FromRepositoryPermissions permissions;
/**
@@ -111,6 +135,12 @@ public FromRepositoryPermissions getPermissions() {
*/
public static class FromRepositoryPermissions {
+ /**
+ * Create default FromRepositoryPermissions instance
+ */
+ public FromRepositoryPermissions() {
+ }
+
private GHRepoPermission from;
/**
diff --git a/src/main/java/org/kohsuke/github/GHTree.java b/src/main/java/org/kohsuke/github/GHTree.java
index 11f35cee49..867fa4531d 100644
--- a/src/main/java/org/kohsuke/github/GHTree.java
+++ b/src/main/java/org/kohsuke/github/GHTree.java
@@ -20,6 +20,12 @@
justification = "JSON API")
public class GHTree {
+ /**
+ * Create default GHTree instance
+ */
+ public GHTree() {
+ }
+
/** The repo. */
/* package almost final */GHRepository repo;
diff --git a/src/main/java/org/kohsuke/github/GHTreeEntry.java b/src/main/java/org/kohsuke/github/GHTreeEntry.java
index 4941365f31..6759378e1f 100644
--- a/src/main/java/org/kohsuke/github/GHTreeEntry.java
+++ b/src/main/java/org/kohsuke/github/GHTreeEntry.java
@@ -13,6 +13,12 @@
*/
public class GHTreeEntry {
+ /**
+ * Create default GHTreeEntry instance
+ */
+ public GHTreeEntry() {
+ }
+
/** The tree. */
/* package almost final */GHTree tree;
diff --git a/src/main/java/org/kohsuke/github/GHUser.java b/src/main/java/org/kohsuke/github/GHUser.java
index afbed86554..fd93a00937 100644
--- a/src/main/java/org/kohsuke/github/GHUser.java
+++ b/src/main/java/org/kohsuke/github/GHUser.java
@@ -34,6 +34,12 @@
*/
public class GHUser extends GHPerson {
+ /**
+ * Create default GHUser instance
+ */
+ public GHUser() {
+ }
+
/** The ldap dn. */
protected String ldap_dn;
diff --git a/src/main/java/org/kohsuke/github/GHVerification.java b/src/main/java/org/kohsuke/github/GHVerification.java
index 2a759ea5a5..6fb5493e88 100644
--- a/src/main/java/org/kohsuke/github/GHVerification.java
+++ b/src/main/java/org/kohsuke/github/GHVerification.java
@@ -16,6 +16,13 @@
@SuppressFBWarnings(value = { "UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD", "UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD" },
justification = "JSON API")
public class GHVerification {
+
+ /**
+ * Create default GHVerification instance
+ */
+ public GHVerification() {
+ }
+
private String signature, payload;
private boolean verified;
private Reason reason;
diff --git a/src/main/java/org/kohsuke/github/GHWorkflow.java b/src/main/java/org/kohsuke/github/GHWorkflow.java
index 1a2b28dfe5..522870a9cf 100644
--- a/src/main/java/org/kohsuke/github/GHWorkflow.java
+++ b/src/main/java/org/kohsuke/github/GHWorkflow.java
@@ -19,6 +19,12 @@
*/
public class GHWorkflow extends GHObject {
+ /**
+ * Create default GHWorkflow instance
+ */
+ public GHWorkflow() {
+ }
+
// Not provided by the API.
@JsonIgnore
private GHRepository owner;
diff --git a/src/main/java/org/kohsuke/github/GHWorkflowJob.java b/src/main/java/org/kohsuke/github/GHWorkflowJob.java
index 326b903aa4..76a2fddaef 100644
--- a/src/main/java/org/kohsuke/github/GHWorkflowJob.java
+++ b/src/main/java/org/kohsuke/github/GHWorkflowJob.java
@@ -25,6 +25,12 @@
*/
public class GHWorkflowJob extends GHObject {
+ /**
+ * Create default GHWorkflowJob instance
+ */
+ public GHWorkflowJob() {
+ }
+
// Not provided by the API.
@JsonIgnore
private GHRepository owner;
@@ -258,6 +264,12 @@ GHWorkflowJob wrapUp(GHRepository owner) {
*/
public static class Step {
+ /**
+ * Create default Step instance
+ */
+ public Step() {
+ }
+
private String name;
private int number;
diff --git a/src/main/java/org/kohsuke/github/GHWorkflowRun.java b/src/main/java/org/kohsuke/github/GHWorkflowRun.java
index efb8bfa68c..6077e4480c 100644
--- a/src/main/java/org/kohsuke/github/GHWorkflowRun.java
+++ b/src/main/java/org/kohsuke/github/GHWorkflowRun.java
@@ -26,6 +26,12 @@
*/
public class GHWorkflowRun extends GHObject {
+ /**
+ * Create default GHWorkflowRun instance
+ */
+ public GHWorkflowRun() {
+ }
+
@JsonProperty("repository")
private GHRepository owner;
@@ -428,6 +434,13 @@ GHWorkflowRun wrapUp(GitHub root) {
* The Class HeadCommit.
*/
public static class HeadCommit {
+
+ /**
+ * Create default HeadCommit instance
+ */
+ public HeadCommit() {
+ }
+
private String id;
private String treeId;
private String message;
diff --git a/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java b/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java
index 33887cad04..9ef2fd9ea8 100644
--- a/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java
+++ b/src/main/java/org/kohsuke/github/GitHubAbuseLimitHandler.java
@@ -23,6 +23,12 @@
*/
public abstract class GitHubAbuseLimitHandler extends GitHubConnectorResponseErrorHandler {
+ /**
+ * Create default GitHubAbuseLimitHandler instance
+ */
+ public GitHubAbuseLimitHandler() {
+ }
+
/**
* Checks if is error.
*
diff --git a/src/main/java/org/kohsuke/github/GitHubInteractiveObject.java b/src/main/java/org/kohsuke/github/GitHubInteractiveObject.java
index 274640bef4..a34f6485e7 100644
--- a/src/main/java/org/kohsuke/github/GitHubInteractiveObject.java
+++ b/src/main/java/org/kohsuke/github/GitHubInteractiveObject.java
@@ -6,7 +6,6 @@
import java.util.Objects;
-// TODO: Auto-generated Javadoc
/**
* Defines a base class that all classes in this library that interact with GitHub inherit from.
*
diff --git a/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java b/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java
index 24ea47f5f4..977c8bf004 100644
--- a/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java
+++ b/src/main/java/org/kohsuke/github/GitHubRateLimitHandler.java
@@ -21,6 +21,12 @@
*/
public abstract class GitHubRateLimitHandler extends GitHubConnectorResponseErrorHandler {
+ /**
+ * Create default GitHubRateLimitHandler instance
+ */
+ public GitHubRateLimitHandler() {
+ }
+
/**
* Checks if is error.
*
diff --git a/src/main/java/org/kohsuke/github/GitHubRequestBuilderDone.java b/src/main/java/org/kohsuke/github/GitHubRequestBuilderDone.java
new file mode 100644
index 0000000000..2ace9de440
--- /dev/null
+++ b/src/main/java/org/kohsuke/github/GitHubRequestBuilderDone.java
@@ -0,0 +1,42 @@
+package org.kohsuke.github;
+
+import java.io.IOException;
+
+/**
+ * The done method for data object builder/updater.
+ *
+ * This interface can be used to make a Builder that supports both batch and single property changes.
+ *
+ * Batching looks like this:
+ *
+ *
+ *
+ * update().someName(value).otherName(value).done()
+ *
+ *
+ * Single changes look like this:
+ *
+ *
+ *
+ * set().someName(value);
+ * set().otherName(value);
+ *
+ *
+ * @author Liam Newman
+ * @param
+ * Final return type built by this builder returned when {@link #done()}} is called.
+ */
+public interface GitHubRequestBuilderDone {
+
+ /**
+ * Finishes a create or update request, committing changes.
+ *
+ * This method may update-in-place or not. Either way it returns the resulting instance.
+ *
+ * @return an instance with updated current data
+ * @throws IOException
+ * if there is an I/O Exception
+ */
+ @BetaApi
+ R done() throws IOException;
+}
diff --git a/src/main/java/org/kohsuke/github/PagedIterable.java b/src/main/java/org/kohsuke/github/PagedIterable.java
index a92d0ef693..7dc17aa0eb 100644
--- a/src/main/java/org/kohsuke/github/PagedIterable.java
+++ b/src/main/java/org/kohsuke/github/PagedIterable.java
@@ -26,6 +26,12 @@ public abstract class PagedIterable implements Iterable {
*/
private int pageSize = 0;
+ /**
+ * Instantiate a PagedIterable.
+ */
+ public PagedIterable() {
+ }
+
/**
* Sets the pagination size.
*
diff --git a/src/main/java/org/kohsuke/github/RateLimitChecker.java b/src/main/java/org/kohsuke/github/RateLimitChecker.java
index fbfdabd93c..5b848cd17e 100644
--- a/src/main/java/org/kohsuke/github/RateLimitChecker.java
+++ b/src/main/java/org/kohsuke/github/RateLimitChecker.java
@@ -22,6 +22,12 @@
*/
public abstract class RateLimitChecker {
+ /**
+ * Create default RateLimitChecker instance
+ */
+ public RateLimitChecker() {
+ }
+
private static final Logger LOGGER = Logger.getLogger(RateLimitChecker.class.getName());
/** The Constant NONE. */
diff --git a/src/main/java/org/kohsuke/github/authorization/AnonymousAuthorizationProvider.java b/src/main/java/org/kohsuke/github/authorization/AnonymousAuthorizationProvider.java
index b71a42626a..488be23e3b 100644
--- a/src/main/java/org/kohsuke/github/authorization/AnonymousAuthorizationProvider.java
+++ b/src/main/java/org/kohsuke/github/authorization/AnonymousAuthorizationProvider.java
@@ -8,6 +8,13 @@
* This will result in the "Authorization" header not being added to a request.
*/
public class AnonymousAuthorizationProvider implements AuthorizationProvider {
+
+ /**
+ * Create default AnonymousAuthorizationProvider instance
+ */
+ public AnonymousAuthorizationProvider() {
+ }
+
@Override
public String getEncodedAuthorization() throws IOException {
return null;
diff --git a/src/main/java/org/kohsuke/github/connector/GitHubConnector.java b/src/main/java/org/kohsuke/github/connector/GitHubConnector.java
index 1e929df0e8..a9f2f1da1e 100644
--- a/src/main/java/org/kohsuke/github/connector/GitHubConnector.java
+++ b/src/main/java/org/kohsuke/github/connector/GitHubConnector.java
@@ -29,8 +29,6 @@ public interface GitHubConnector {
* @return a GitHubConnectorResponse for the request
* @throws IOException
* if there is an I/O error
- *
- * @author Liam Newman
*/
GitHubConnectorResponse send(GitHubConnectorRequest connectorRequest) throws IOException;
diff --git a/src/main/java/org/kohsuke/github/example/dataobject/ReadOnlyObjects.java b/src/main/java/org/kohsuke/github/example/dataobject/ReadOnlyObjects.java
index fb6a517fdf..d9b0f0e2a7 100644
--- a/src/main/java/org/kohsuke/github/example/dataobject/ReadOnlyObjects.java
+++ b/src/main/java/org/kohsuke/github/example/dataobject/ReadOnlyObjects.java
@@ -31,6 +31,12 @@
*/
public final class ReadOnlyObjects {
+ /**
+ * Placeholder constructor.
+ */
+ public ReadOnlyObjects() {
+ }
+
/**
* All GHMeta data objects should expose these values.
*
@@ -108,6 +114,12 @@ public interface GHMetaExample {
*/
public static class GHMetaPublic implements GHMetaExample {
+ /**
+ * Create default GHMetaPublic instance
+ */
+ public GHMetaPublic() {
+ }
+
@JsonProperty("verifiable_password_authentication")
private boolean verifiablePasswordAuthentication;
private List hooks;
@@ -251,6 +263,12 @@ public void setImporter(List importer) {
*/
public static class GHMetaPackage implements GHMetaExample {
+ /**
+ * Create default GHMetaPackage instance
+ */
+ public GHMetaPackage() {
+ }
+
private boolean verifiablePasswordAuthentication;
private List hooks;
private List git;
@@ -388,6 +406,12 @@ void setImporter(List importer) {
*/
public static class GHMetaGettersUnmodifiable implements GHMetaExample {
+ /**
+ * Create default GHMetaGettersUnmodifiable instance
+ */
+ public GHMetaGettersUnmodifiable() {
+ }
+
@JsonProperty("verifiable_password_authentication")
private boolean verifiablePasswordAuthentication;
private List hooks;
diff --git a/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java b/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java
index 88a75d7af8..7cea51bda0 100644
--- a/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java
+++ b/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java
@@ -11,7 +11,6 @@
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
-import org.kohsuke.github.junit.GitHubWireMockRule;
import wiremock.com.github.jknack.handlebars.Helper;
import wiremock.com.github.jknack.handlebars.Options;
@@ -399,6 +398,12 @@ protected static class TemplatingHelper {
/** The test start date. */
public Date testStartDate = new Date();
+ /**
+ * Instantiate TemplatingHelper
+ */
+ public TemplatingHelper() {
+ }
+
/**
* New response transformer.
*
diff --git a/src/test/java/org/kohsuke/github/AotIntegrationTest.java b/src/test/java/org/kohsuke/github/AotIntegrationTest.java
index 403dbeb990..8605d8aa46 100644
--- a/src/test/java/org/kohsuke/github/AotIntegrationTest.java
+++ b/src/test/java/org/kohsuke/github/AotIntegrationTest.java
@@ -25,6 +25,12 @@
@SpringBootTest
public class AotIntegrationTest {
+ /**
+ * Create default AotIntegrationTest instance
+ */
+ public AotIntegrationTest() {
+ }
+
/**
* Test to check if all required classes are registered for AOT.
*
diff --git a/src/test/java/org/kohsuke/github/AotTestRuntimeHints.java b/src/test/java/org/kohsuke/github/AotTestRuntimeHints.java
index 5f321bc028..9f184dee66 100644
--- a/src/test/java/org/kohsuke/github/AotTestRuntimeHints.java
+++ b/src/test/java/org/kohsuke/github/AotTestRuntimeHints.java
@@ -26,6 +26,12 @@ public class AotTestRuntimeHints implements RuntimeHintsRegistrar {
private static final String LOCATION_PATTERN_OF_ORG_KOHSUKE_GITHUB_CLASSES = "classpath*:org/kohsuke/github/**/*.class";
+ /**
+ * Default constructor.
+ */
+ public AotTestRuntimeHints() {
+ }
+
@Override
public void registerHints(@NotNull RuntimeHints hints, ClassLoader classLoader) {
try {
diff --git a/src/test/java/org/kohsuke/github/AppTest.java b/src/test/java/org/kohsuke/github/AppTest.java
index 61c3e3818a..9f73194b15 100755
--- a/src/test/java/org/kohsuke/github/AppTest.java
+++ b/src/test/java/org/kohsuke/github/AppTest.java
@@ -28,6 +28,12 @@
*/
public class AppTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default AppTest instance
+ */
+ public AppTest() {
+ }
+
/** The Constant GITHUB_API_TEST_REPO. */
static final String GITHUB_API_TEST_REPO = "github-api-test";
@@ -1037,6 +1043,19 @@ public void testUserPublicEventApi() throws Exception {
}
}
+ /**
+ * Test getEmails.
+ *
+ * @throws IOException
+ * Signals that an I/O exception has occurred.
+ */
+ @Test
+ public void testGetEmails() throws IOException {
+ List emails = gitHub.getMyself().getEmails();
+ assertThat(emails.size(), equalTo(2));
+ assertThat(emails, contains("bitwiseman@gmail.com", "bitwiseman@users.noreply.github.com"));
+ }
+
/**
* Test app.
*
diff --git a/src/test/java/org/kohsuke/github/ArchTests.java b/src/test/java/org/kohsuke/github/ArchTests.java
index 8ff7d3621f..e21a7ab108 100644
--- a/src/test/java/org/kohsuke/github/ArchTests.java
+++ b/src/test/java/org/kohsuke/github/ArchTests.java
@@ -55,6 +55,12 @@ public class ArchTests {
.withImportOption(new ImportOption.DoNotIncludeJars())
.importPackages("org.kohsuke.github");
+ /**
+ * Default constructor.
+ */
+ public ArchTests() {
+ }
+
/**
* Before class.
*/
diff --git a/src/test/java/org/kohsuke/github/BridgeMethodTest.java b/src/test/java/org/kohsuke/github/BridgeMethodTest.java
index 3be1c35bb0..a4ccdd5d09 100644
--- a/src/test/java/org/kohsuke/github/BridgeMethodTest.java
+++ b/src/test/java/org/kohsuke/github/BridgeMethodTest.java
@@ -20,6 +20,12 @@
*/
public class BridgeMethodTest extends Assert {
+ /**
+ * Create default BridgeMethodTest instance
+ */
+ public BridgeMethodTest() {
+ }
+
/**
* Test bridge methods.
*
diff --git a/src/test/java/org/kohsuke/github/CommitTest.java b/src/test/java/org/kohsuke/github/CommitTest.java
index 1877c87b26..746fec1e38 100644
--- a/src/test/java/org/kohsuke/github/CommitTest.java
+++ b/src/test/java/org/kohsuke/github/CommitTest.java
@@ -19,6 +19,12 @@
*/
public class CommitTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default CommitTest instance
+ */
+ public CommitTest() {
+ }
+
/**
* Last status.
*
diff --git a/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java b/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java
index 9ddc72ea66..ad2c4c63fe 100644
--- a/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java
+++ b/src/test/java/org/kohsuke/github/EnterpriseManagedSupportTest.java
@@ -14,6 +14,12 @@
*/
public class EnterpriseManagedSupportTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default EnterpriseManagedSupportTest instance
+ */
+ public EnterpriseManagedSupportTest() {
+ }
+
private static final String NOT_PART_OF_EXTERNALLY_MANAGED_ENTERPRISE_ERROR = "{\"message\":\"This organization is not part of externally managed enterprise.\","
+ "\"documentation_url\": \"https://docs.github.com/rest/teams/external-groups#list-external-groups-in-an-organization\"}";
diff --git a/src/test/java/org/kohsuke/github/EnumTest.java b/src/test/java/org/kohsuke/github/EnumTest.java
index 778df77bf4..2e509b5aec 100644
--- a/src/test/java/org/kohsuke/github/EnumTest.java
+++ b/src/test/java/org/kohsuke/github/EnumTest.java
@@ -12,6 +12,12 @@
*/
public class EnumTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default EnumTest instance
+ */
+ public EnumTest() {
+ }
+
/**
* Touch enums.
*/
diff --git a/src/test/java/org/kohsuke/github/GHAppExtendedTest.java b/src/test/java/org/kohsuke/github/GHAppExtendedTest.java
index a419f0945a..84e3566a55 100644
--- a/src/test/java/org/kohsuke/github/GHAppExtendedTest.java
+++ b/src/test/java/org/kohsuke/github/GHAppExtendedTest.java
@@ -14,6 +14,12 @@
*/
public class GHAppExtendedTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHAppExtendedTest instance
+ */
+ public GHAppExtendedTest() {
+ }
+
private static final String APP_SLUG = "ghapi-test-app-4";
/**
diff --git a/src/test/java/org/kohsuke/github/GHAppInstallationTest.java b/src/test/java/org/kohsuke/github/GHAppInstallationTest.java
index d6218d1121..46c51b7b64 100644
--- a/src/test/java/org/kohsuke/github/GHAppInstallationTest.java
+++ b/src/test/java/org/kohsuke/github/GHAppInstallationTest.java
@@ -18,6 +18,12 @@
*/
public class GHAppInstallationTest extends AbstractGHAppInstallationTest {
+ /**
+ * Create default GHAppInstallationTest instance
+ */
+ public GHAppInstallationTest() {
+ }
+
/**
* Test list repositories two repos.
*
diff --git a/src/test/java/org/kohsuke/github/GHAppTest.java b/src/test/java/org/kohsuke/github/GHAppTest.java
index 431dd13037..27a3023636 100644
--- a/src/test/java/org/kohsuke/github/GHAppTest.java
+++ b/src/test/java/org/kohsuke/github/GHAppTest.java
@@ -23,6 +23,12 @@
*/
public class GHAppTest extends AbstractGHAppInstallationTest {
+ /**
+ * Create default GHAppTest instance
+ */
+ public GHAppTest() {
+ }
+
/**
* Gets the git hub builder.
*
diff --git a/src/test/java/org/kohsuke/github/GHAuthenticatedAppInstallationTest.java b/src/test/java/org/kohsuke/github/GHAuthenticatedAppInstallationTest.java
index 4461ccbc8a..3786f22e37 100644
--- a/src/test/java/org/kohsuke/github/GHAuthenticatedAppInstallationTest.java
+++ b/src/test/java/org/kohsuke/github/GHAuthenticatedAppInstallationTest.java
@@ -15,6 +15,12 @@
*/
public class GHAuthenticatedAppInstallationTest extends AbstractGHAppInstallationTest {
+ /**
+ * Create default GHAuthenticatedAppInstallationTest instance
+ */
+ public GHAuthenticatedAppInstallationTest() {
+ }
+
/**
* Gets the git hub builder.
*
diff --git a/src/test/java/org/kohsuke/github/GHBranchProtectionTest.java b/src/test/java/org/kohsuke/github/GHBranchProtectionTest.java
index 17d7d85f01..d01ecabcf7 100755
--- a/src/test/java/org/kohsuke/github/GHBranchProtectionTest.java
+++ b/src/test/java/org/kohsuke/github/GHBranchProtectionTest.java
@@ -22,6 +22,13 @@
* The Class GHBranchProtectionTest.
*/
public class GHBranchProtectionTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHBranchProtectionTest instance
+ */
+ public GHBranchProtectionTest() {
+ }
+
private static final String BRANCH = "main";
private static final String BRANCH_REF = "heads/" + BRANCH;
diff --git a/src/test/java/org/kohsuke/github/GHBranchTest.java b/src/test/java/org/kohsuke/github/GHBranchTest.java
index f28554160d..117da049f7 100644
--- a/src/test/java/org/kohsuke/github/GHBranchTest.java
+++ b/src/test/java/org/kohsuke/github/GHBranchTest.java
@@ -9,6 +9,13 @@
* The Class GHBranchTest.
*/
public class GHBranchTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHBranchTest instance
+ */
+ public GHBranchTest() {
+ }
+
private static final String BRANCH_1 = "testBranch1";
private static final String BRANCH_2 = "testBranch2";
diff --git a/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java b/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java
index 5b48eabd2d..a52e07e3a4 100644
--- a/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java
+++ b/src/test/java/org/kohsuke/github/GHCheckRunBuilderTest.java
@@ -40,6 +40,12 @@
@SuppressWarnings("deprecation") // preview
public class GHCheckRunBuilderTest extends AbstractGHAppInstallationTest {
+ /**
+ * Create default GHCheckRunBuilderTest instance
+ */
+ public GHCheckRunBuilderTest() {
+ }
+
/**
* Gets the installation github.
*
diff --git a/src/test/java/org/kohsuke/github/GHCodeownersErrorTest.java b/src/test/java/org/kohsuke/github/GHCodeownersErrorTest.java
index b4294be64e..958d4908be 100644
--- a/src/test/java/org/kohsuke/github/GHCodeownersErrorTest.java
+++ b/src/test/java/org/kohsuke/github/GHCodeownersErrorTest.java
@@ -14,6 +14,12 @@
*/
public class GHCodeownersErrorTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHCodeownersErrorTest instance
+ */
+ public GHCodeownersErrorTest() {
+ }
+
/**
* Gets the {@code CODEOWNERS} errors.
*
diff --git a/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java b/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
index a9d330ba5b..36151cea4f 100644
--- a/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
+++ b/src/test/java/org/kohsuke/github/GHContentIntegrationTest.java
@@ -20,6 +20,12 @@
*/
public class GHContentIntegrationTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHContentIntegrationTest instance
+ */
+ public GHContentIntegrationTest() {
+ }
+
private GHRepository repo;
// file name with spaces and other chars
diff --git a/src/test/java/org/kohsuke/github/GHDeployKeyTest.java b/src/test/java/org/kohsuke/github/GHDeployKeyTest.java
index 35d321888c..bc3bb229ab 100644
--- a/src/test/java/org/kohsuke/github/GHDeployKeyTest.java
+++ b/src/test/java/org/kohsuke/github/GHDeployKeyTest.java
@@ -17,6 +17,13 @@
* @author Jonas van Vliet
*/
public class GHDeployKeyTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHDeployKeyTest instance
+ */
+ public GHDeployKeyTest() {
+ }
+
private static final String DEPLOY_KEY_TEST_REPO_NAME = "hub4j-test-org/GHDeployKeyTest";
private static final String ED_25519_READONLY = "DeployKey - ed25519 - readonly";
private static final String RSA_4096_READWRITE = "Deploykey - rsa4096 - readwrite";
diff --git a/src/test/java/org/kohsuke/github/GHDeploymentTest.java b/src/test/java/org/kohsuke/github/GHDeploymentTest.java
index 32be0ceadd..56d8caa634 100644
--- a/src/test/java/org/kohsuke/github/GHDeploymentTest.java
+++ b/src/test/java/org/kohsuke/github/GHDeploymentTest.java
@@ -16,6 +16,12 @@
*/
public class GHDeploymentTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHDeploymentTest instance
+ */
+ public GHDeploymentTest() {
+ }
+
/**
* Test get deployment by id string payload.
*
diff --git a/src/test/java/org/kohsuke/github/GHDiscussionTest.java b/src/test/java/org/kohsuke/github/GHDiscussionTest.java
index c2ea7f270b..a2b68db1b5 100644
--- a/src/test/java/org/kohsuke/github/GHDiscussionTest.java
+++ b/src/test/java/org/kohsuke/github/GHDiscussionTest.java
@@ -17,6 +17,13 @@
* @author Charles Moulliard
*/
public class GHDiscussionTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHDiscussionTest instance
+ */
+ public GHDiscussionTest() {
+ }
+
private final String TEAM_SLUG = "dummy-team";
private GHTeam team;
diff --git a/src/test/java/org/kohsuke/github/GHEventTest.java b/src/test/java/org/kohsuke/github/GHEventTest.java
index 4b43202da2..900063d2b8 100644
--- a/src/test/java/org/kohsuke/github/GHEventTest.java
+++ b/src/test/java/org/kohsuke/github/GHEventTest.java
@@ -11,6 +11,12 @@
*/
public class GHEventTest {
+ /**
+ * Create default GHEventTest instance
+ */
+ public GHEventTest() {
+ }
+
/**
* Function from GHEventInfo to transform string event to GHEvent which has been replaced by static mapping due to
* complex parsing logic below
diff --git a/src/test/java/org/kohsuke/github/GHExternalGroupTest.java b/src/test/java/org/kohsuke/github/GHExternalGroupTest.java
index ef7e7ec7d8..da0696eece 100644
--- a/src/test/java/org/kohsuke/github/GHExternalGroupTest.java
+++ b/src/test/java/org/kohsuke/github/GHExternalGroupTest.java
@@ -16,6 +16,12 @@
*/
public class GHExternalGroupTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHExternalGroupTest instance
+ */
+ public GHExternalGroupTest() {
+ }
+
/**
* Test refresh bound external group.
*
diff --git a/src/test/java/org/kohsuke/github/GHGistTest.java b/src/test/java/org/kohsuke/github/GHGistTest.java
index 142247a18f..14e02f1c23 100644
--- a/src/test/java/org/kohsuke/github/GHGistTest.java
+++ b/src/test/java/org/kohsuke/github/GHGistTest.java
@@ -14,6 +14,12 @@
*/
public class GHGistTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHGistTest instance
+ */
+ public GHGistTest() {
+ }
+
/**
* Lifecycle test.
*
diff --git a/src/test/java/org/kohsuke/github/GHGistUpdaterTest.java b/src/test/java/org/kohsuke/github/GHGistUpdaterTest.java
index 5ec2590c59..e5626fc034 100644
--- a/src/test/java/org/kohsuke/github/GHGistUpdaterTest.java
+++ b/src/test/java/org/kohsuke/github/GHGistUpdaterTest.java
@@ -17,6 +17,12 @@
*/
public class GHGistUpdaterTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHGistUpdaterTest instance
+ */
+ public GHGistUpdaterTest() {
+ }
+
private GHGist gist;
/**
diff --git a/src/test/java/org/kohsuke/github/GHHookTest.java b/src/test/java/org/kohsuke/github/GHHookTest.java
index f129d132a9..ca6b1a7186 100644
--- a/src/test/java/org/kohsuke/github/GHHookTest.java
+++ b/src/test/java/org/kohsuke/github/GHHookTest.java
@@ -24,6 +24,12 @@
*/
public class GHHookTest {
+ /**
+ * Create default GHHookTest instance
+ */
+ public GHHookTest() {
+ }
+
/**
* Expose responce headers.
*
diff --git a/src/test/java/org/kohsuke/github/GHIssueEventAttributeTest.java b/src/test/java/org/kohsuke/github/GHIssueEventAttributeTest.java
index 58f0587e74..73d04232d6 100644
--- a/src/test/java/org/kohsuke/github/GHIssueEventAttributeTest.java
+++ b/src/test/java/org/kohsuke/github/GHIssueEventAttributeTest.java
@@ -21,6 +21,12 @@
*/
public class GHIssueEventAttributeTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHIssueEventAttributeTest instance
+ */
+ public GHIssueEventAttributeTest() {
+ }
+
private enum Type implements Predicate, Consumer {
milestone(e -> assertThat(e.getMilestone(), notNullValue()), "milestoned", "demilestoned"),
label(e -> assertThat(e.getLabel(), notNullValue()), "labeled", "unlabeled"),
diff --git a/src/test/java/org/kohsuke/github/GHIssueEventTest.java b/src/test/java/org/kohsuke/github/GHIssueEventTest.java
index 6ff51e0a46..5ac4c2b1df 100644
--- a/src/test/java/org/kohsuke/github/GHIssueEventTest.java
+++ b/src/test/java/org/kohsuke/github/GHIssueEventTest.java
@@ -16,6 +16,12 @@
*/
public class GHIssueEventTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHIssueEventTest instance
+ */
+ public GHIssueEventTest() {
+ }
+
/**
* Test events for single issue.
*
diff --git a/src/test/java/org/kohsuke/github/GHIssueTest.java b/src/test/java/org/kohsuke/github/GHIssueTest.java
index bcdddea659..5b1a45f3d6 100644
--- a/src/test/java/org/kohsuke/github/GHIssueTest.java
+++ b/src/test/java/org/kohsuke/github/GHIssueTest.java
@@ -29,6 +29,12 @@
*/
public class GHIssueTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHIssueTest instance
+ */
+ public GHIssueTest() {
+ }
+
/**
* Clean up.
*
diff --git a/src/test/java/org/kohsuke/github/GHLicenseTest.java b/src/test/java/org/kohsuke/github/GHLicenseTest.java
index fc47e72068..89580309b6 100644
--- a/src/test/java/org/kohsuke/github/GHLicenseTest.java
+++ b/src/test/java/org/kohsuke/github/GHLicenseTest.java
@@ -40,6 +40,12 @@
*/
public class GHLicenseTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHLicenseTest instance
+ */
+ public GHLicenseTest() {
+ }
+
/**
* Basic test to ensure that the list of licenses from {@link GitHub#listLicenses()} is returned.
*
diff --git a/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java b/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java
index d95ef2b0f9..ef8b5690cd 100644
--- a/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java
+++ b/src/test/java/org/kohsuke/github/GHMarketplacePlanTest.java
@@ -20,6 +20,12 @@
*/
public class GHMarketplacePlanTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHMarketplacePlanTest instance
+ */
+ public GHMarketplacePlanTest() {
+ }
+
/**
* Gets the git hub builder.
*
diff --git a/src/test/java/org/kohsuke/github/GHMilestoneTest.java b/src/test/java/org/kohsuke/github/GHMilestoneTest.java
index f5da382cc2..78867c4cd3 100644
--- a/src/test/java/org/kohsuke/github/GHMilestoneTest.java
+++ b/src/test/java/org/kohsuke/github/GHMilestoneTest.java
@@ -18,6 +18,12 @@
*/
public class GHMilestoneTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHMilestoneTest instance
+ */
+ public GHMilestoneTest() {
+ }
+
/**
* Clean up.
*
diff --git a/src/test/java/org/kohsuke/github/GHObjectTest.java b/src/test/java/org/kohsuke/github/GHObjectTest.java
index 66388e55ee..04cb3ac365 100644
--- a/src/test/java/org/kohsuke/github/GHObjectTest.java
+++ b/src/test/java/org/kohsuke/github/GHObjectTest.java
@@ -10,6 +10,12 @@
*/
public class GHObjectTest extends org.kohsuke.github.AbstractGitHubWireMockTest {
+ /**
+ * Create default GHObjectTest instance
+ */
+ public GHObjectTest() {
+ }
+
/**
* Test to string.
*
diff --git a/src/test/java/org/kohsuke/github/GHOrganizationTest.java b/src/test/java/org/kohsuke/github/GHOrganizationTest.java
index 71e5cad586..7457869b1d 100644
--- a/src/test/java/org/kohsuke/github/GHOrganizationTest.java
+++ b/src/test/java/org/kohsuke/github/GHOrganizationTest.java
@@ -23,6 +23,12 @@
*/
public class GHOrganizationTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHOrganizationTest instance
+ */
+ public GHOrganizationTest() {
+ }
+
/** The Constant GITHUB_API_TEST. */
public static final String GITHUB_API_TEST = "github-api-test";
diff --git a/src/test/java/org/kohsuke/github/GHPersonTest.java b/src/test/java/org/kohsuke/github/GHPersonTest.java
index efadce263a..199885c01c 100644
--- a/src/test/java/org/kohsuke/github/GHPersonTest.java
+++ b/src/test/java/org/kohsuke/github/GHPersonTest.java
@@ -15,6 +15,12 @@
*/
public class GHPersonTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHPersonTest instance
+ */
+ public GHPersonTest() {
+ }
+
/**
* Test fields for organization.
*
diff --git a/src/test/java/org/kohsuke/github/GHProjectCardTest.java b/src/test/java/org/kohsuke/github/GHProjectCardTest.java
index 7370ac9de5..f3494b8a63 100644
--- a/src/test/java/org/kohsuke/github/GHProjectCardTest.java
+++ b/src/test/java/org/kohsuke/github/GHProjectCardTest.java
@@ -16,6 +16,13 @@
* @author Gunnar Skjold
*/
public class GHProjectCardTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHProjectCardTest instance
+ */
+ public GHProjectCardTest() {
+ }
+
private GHOrganization org;
private GHProject project;
private GHProjectColumn column;
diff --git a/src/test/java/org/kohsuke/github/GHProjectColumnTest.java b/src/test/java/org/kohsuke/github/GHProjectColumnTest.java
index afbdaf5bbd..ec09a4e3a2 100644
--- a/src/test/java/org/kohsuke/github/GHProjectColumnTest.java
+++ b/src/test/java/org/kohsuke/github/GHProjectColumnTest.java
@@ -17,6 +17,13 @@
* @author Gunnar Skjold
*/
public class GHProjectColumnTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHProjectColumnTest instance
+ */
+ public GHProjectColumnTest() {
+ }
+
private GHProject project;
private GHProjectColumn column;
diff --git a/src/test/java/org/kohsuke/github/GHProjectTest.java b/src/test/java/org/kohsuke/github/GHProjectTest.java
index cf2707e205..45f893e302 100644
--- a/src/test/java/org/kohsuke/github/GHProjectTest.java
+++ b/src/test/java/org/kohsuke/github/GHProjectTest.java
@@ -16,6 +16,13 @@
* @author Gunnar Skjold
*/
public class GHProjectTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHProjectTest instance
+ */
+ public GHProjectTest() {
+ }
+
private GHProject project;
/**
diff --git a/src/test/java/org/kohsuke/github/GHPublicKeyTest.java b/src/test/java/org/kohsuke/github/GHPublicKeyTest.java
index 4bd505b168..b4f4a07b8c 100644
--- a/src/test/java/org/kohsuke/github/GHPublicKeyTest.java
+++ b/src/test/java/org/kohsuke/github/GHPublicKeyTest.java
@@ -9,6 +9,12 @@
*/
public class GHPublicKeyTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHPublicKeyTest instance
+ */
+ public GHPublicKeyTest() {
+ }
+
private static final String TMP_KEY_NAME = "Temporary user key";
private static final String WIREMOCK_SSH_PUBLIC_KEY = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDepW2/BSVFM2AfuGGsvi+vjQzC0EBD3R+/7PNEvP0/nvTWxiC/tthfvvCJR6TKrsprCir5tiJFm73gX+K18W0RKYpkyg8H6d1eZu3q/JOiGvoDPeN8Oe9hOGeeexw1WOiz7ESPHzZYXI981evzHAzxxn8zibr2EryopVNsXyoenw==";
diff --git a/src/test/java/org/kohsuke/github/GHPullRequestMockTest.java b/src/test/java/org/kohsuke/github/GHPullRequestMockTest.java
index 852a442cca..45dd9af9f5 100644
--- a/src/test/java/org/kohsuke/github/GHPullRequestMockTest.java
+++ b/src/test/java/org/kohsuke/github/GHPullRequestMockTest.java
@@ -14,6 +14,12 @@
*/
public class GHPullRequestMockTest {
+ /**
+ * Create default GHPullRequestMockTest instance
+ */
+ public GHPullRequestMockTest() {
+ }
+
/**
* Should mock GH pull request.
*
diff --git a/src/test/java/org/kohsuke/github/GHPullRequestTest.java b/src/test/java/org/kohsuke/github/GHPullRequestTest.java
index 664f447b16..0a2e4a2712 100644
--- a/src/test/java/org/kohsuke/github/GHPullRequestTest.java
+++ b/src/test/java/org/kohsuke/github/GHPullRequestTest.java
@@ -34,6 +34,12 @@
*/
public class GHPullRequestTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHPullRequestTest instance
+ */
+ public GHPullRequestTest() {
+ }
+
/**
* Clean up.
*
diff --git a/src/test/java/org/kohsuke/github/GHReleaseTest.java b/src/test/java/org/kohsuke/github/GHReleaseTest.java
index 65fb6a9ba5..7d907c4335 100644
--- a/src/test/java/org/kohsuke/github/GHReleaseTest.java
+++ b/src/test/java/org/kohsuke/github/GHReleaseTest.java
@@ -12,6 +12,12 @@
*/
public class GHReleaseTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHReleaseTest instance
+ */
+ public GHReleaseTest() {
+ }
+
/**
* Test create simple release.
*
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java b/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java
index 9f176883ed..084e41e159 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryRuleTest.java
@@ -21,6 +21,13 @@
* Test class for GHRepositoryRule.
*/
public class GHRepositoryRuleTest {
+
+ /**
+ * Create default GHRepositoryRuleTest instance
+ */
+ public GHRepositoryRuleTest() {
+ }
+
/**
* Test to cover the constructor of the Parameters class.
*/
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryStatisticsTest.java b/src/test/java/org/kohsuke/github/GHRepositoryStatisticsTest.java
index 56cf3d954a..b7e32ce0a8 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryStatisticsTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryStatisticsTest.java
@@ -14,6 +14,12 @@
*/
public class GHRepositoryStatisticsTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHRepositoryStatisticsTest instance
+ */
+ public GHRepositoryStatisticsTest() {
+ }
+
/** The max iterations. */
public static int MAX_ITERATIONS = 3;
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTest.java
index 645f3e44cb..4a339571a3 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryTest.java
@@ -33,6 +33,12 @@
*/
public class GHRepositoryTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHRepositoryTest instance
+ */
+ public GHRepositoryTest() {
+ }
+
/**
* Gets the repository.
*
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java
index 78cd6d2520..af092d4c79 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryTrafficReferralBaseTest.java
@@ -11,6 +11,12 @@
*/
public class GHRepositoryTrafficReferralBaseTest {
+ /**
+ * Create default GHRepositoryTrafficReferralBaseTest instance
+ */
+ public GHRepositoryTrafficReferralBaseTest() {
+ }
+
/**
* Test the constructor.
*/
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java
index b1de0dff72..498de39fb5 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralPathTest.java
@@ -11,6 +11,12 @@
*/
public class GHRepositoryTrafficTopReferralPathTest {
+ /**
+ * Create default GHRepositoryTrafficTopReferralPathTest instance
+ */
+ public GHRepositoryTrafficTopReferralPathTest() {
+ }
+
/**
* Test the constructor.
*/
diff --git a/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java
index 9125f29080..7051d7f7ad 100644
--- a/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java
+++ b/src/test/java/org/kohsuke/github/GHRepositoryTrafficTopReferralSourcesTest.java
@@ -11,6 +11,12 @@
*/
public class GHRepositoryTrafficTopReferralSourcesTest {
+ /**
+ * Create default GHRepositoryTrafficTopReferralSourcesTest instance
+ */
+ public GHRepositoryTrafficTopReferralSourcesTest() {
+ }
+
/**
* Test the constructor.
*/
diff --git a/src/test/java/org/kohsuke/github/GHTagTest.java b/src/test/java/org/kohsuke/github/GHTagTest.java
index d4536ed929..48f990f3dc 100644
--- a/src/test/java/org/kohsuke/github/GHTagTest.java
+++ b/src/test/java/org/kohsuke/github/GHTagTest.java
@@ -16,6 +16,12 @@
*/
public class GHTagTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHTagTest instance
+ */
+ public GHTagTest() {
+ }
+
/**
* Clean up tags.
*
diff --git a/src/test/java/org/kohsuke/github/GHTeamBuilderTest.java b/src/test/java/org/kohsuke/github/GHTeamBuilderTest.java
index 60148acd7c..8a2a715173 100644
--- a/src/test/java/org/kohsuke/github/GHTeamBuilderTest.java
+++ b/src/test/java/org/kohsuke/github/GHTeamBuilderTest.java
@@ -12,6 +12,12 @@
*/
public class GHTeamBuilderTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHTeamBuilderTest instance
+ */
+ public GHTeamBuilderTest() {
+ }
+
/**
* Test create child team.
*
diff --git a/src/test/java/org/kohsuke/github/GHTeamTest.java b/src/test/java/org/kohsuke/github/GHTeamTest.java
index 8deba28c2b..1bd3ea6bae 100644
--- a/src/test/java/org/kohsuke/github/GHTeamTest.java
+++ b/src/test/java/org/kohsuke/github/GHTeamTest.java
@@ -22,6 +22,12 @@
*/
public class GHTeamTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHTeamTest instance
+ */
+ public GHTeamTest() {
+ }
+
/**
* Test set description.
*
diff --git a/src/test/java/org/kohsuke/github/GHTreeBuilderTest.java b/src/test/java/org/kohsuke/github/GHTreeBuilderTest.java
index 51787918c5..2f3ea77fb4 100644
--- a/src/test/java/org/kohsuke/github/GHTreeBuilderTest.java
+++ b/src/test/java/org/kohsuke/github/GHTreeBuilderTest.java
@@ -15,6 +15,13 @@
* The Class GHTreeBuilderTest.
*/
public class GHTreeBuilderTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default GHTreeBuilderTest instance
+ */
+ public GHTreeBuilderTest() {
+ }
+
private static String REPO_NAME = "hub4j-test-org/GHTreeBuilderTest";
private static String PATH_SCRIPT = "app/run.sh";
diff --git a/src/test/java/org/kohsuke/github/GHUserTest.java b/src/test/java/org/kohsuke/github/GHUserTest.java
index 952309a23e..bf47fb252e 100644
--- a/src/test/java/org/kohsuke/github/GHUserTest.java
+++ b/src/test/java/org/kohsuke/github/GHUserTest.java
@@ -20,6 +20,12 @@
*/
public class GHUserTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHUserTest instance
+ */
+ public GHUserTest() {
+ }
+
/**
* Checks if is member of.
*
diff --git a/src/test/java/org/kohsuke/github/GHVerificationReasonTest.java b/src/test/java/org/kohsuke/github/GHVerificationReasonTest.java
index 42b3292c72..3573fd3860 100644
--- a/src/test/java/org/kohsuke/github/GHVerificationReasonTest.java
+++ b/src/test/java/org/kohsuke/github/GHVerificationReasonTest.java
@@ -12,6 +12,12 @@
*/
public class GHVerificationReasonTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHVerificationReasonTest instance
+ */
+ public GHVerificationReasonTest() {
+ }
+
/**
* Test expired key.
*
diff --git a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
index cda06a9ebf..d15f506672 100644
--- a/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
+++ b/src/test/java/org/kohsuke/github/GHWorkflowRunTest.java
@@ -30,6 +30,12 @@
*/
public class GHWorkflowRunTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHWorkflowRunTest instance
+ */
+ public GHWorkflowRunTest() {
+ }
+
private static final String REPO_NAME = "hub4j-test-org/GHWorkflowRunTest";
private static final String MAIN_BRANCH = "main";
private static final String SECOND_BRANCH = "second-branch";
diff --git a/src/test/java/org/kohsuke/github/GHWorkflowTest.java b/src/test/java/org/kohsuke/github/GHWorkflowTest.java
index 63b2aec5c8..33e3682bbd 100644
--- a/src/test/java/org/kohsuke/github/GHWorkflowTest.java
+++ b/src/test/java/org/kohsuke/github/GHWorkflowTest.java
@@ -21,6 +21,12 @@
*/
public class GHWorkflowTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GHWorkflowTest instance
+ */
+ public GHWorkflowTest() {
+ }
+
private static String REPO_NAME = "hub4j-test-org/GHWorkflowTest";
private GHRepository repo;
diff --git a/src/test/java/org/kohsuke/github/GitHubStaticTest.java b/src/test/java/org/kohsuke/github/GitHubStaticTest.java
index e2866ae055..729b130a8c 100644
--- a/src/test/java/org/kohsuke/github/GitHubStaticTest.java
+++ b/src/test/java/org/kohsuke/github/GitHubStaticTest.java
@@ -29,6 +29,12 @@
*/
public class GitHubStaticTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GitHubStaticTest instance
+ */
+ public GitHubStaticTest() {
+ }
+
/**
* Test parse URL.
*
diff --git a/src/test/java/org/kohsuke/github/GitHubTest.java b/src/test/java/org/kohsuke/github/GitHubTest.java
index 61ca013d18..ada391e326 100644
--- a/src/test/java/org/kohsuke/github/GitHubTest.java
+++ b/src/test/java/org/kohsuke/github/GitHubTest.java
@@ -17,6 +17,12 @@
*/
public class GitHubTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default GitHubTest instance
+ */
+ public GitHubTest() {
+ }
+
/**
* List users.
*
diff --git a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java b/src/test/java/org/kohsuke/github/GitHubWireMockRule.java
similarity index 99%
rename from src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java
rename to src/test/java/org/kohsuke/github/GitHubWireMockRule.java
index 980a997e69..bd4224f9dc 100644
--- a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java
+++ b/src/test/java/org/kohsuke/github/GitHubWireMockRule.java
@@ -1,4 +1,4 @@
-package org.kohsuke.github.junit;
+package org.kohsuke.github;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder;
@@ -31,7 +31,6 @@
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import static com.github.tomakehurst.wiremock.common.Gzip.unGzipToString;
-// TODO: Auto-generated Javadoc
/**
* The standard WireMockRule eagerly initializes a WireMockServer. This version suptakes a laze approach allowing us to
* automatically isolate snapshots for each method.
diff --git a/src/test/java/org/kohsuke/github/Github2faTest.java b/src/test/java/org/kohsuke/github/Github2faTest.java
index 8a4e10421f..70b5a127b8 100644
--- a/src/test/java/org/kohsuke/github/Github2faTest.java
+++ b/src/test/java/org/kohsuke/github/Github2faTest.java
@@ -16,6 +16,12 @@
*/
public class Github2faTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default Github2faTest instance
+ */
+ public Github2faTest() {
+ }
+
/**
* Test 2 fa token.
*
diff --git a/src/test/java/org/kohsuke/github/LifecycleTest.java b/src/test/java/org/kohsuke/github/LifecycleTest.java
index 7abbd5a7fb..b518fb6444 100644
--- a/src/test/java/org/kohsuke/github/LifecycleTest.java
+++ b/src/test/java/org/kohsuke/github/LifecycleTest.java
@@ -18,6 +18,12 @@
*/
public class LifecycleTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default LifecycleTest instance
+ */
+ public LifecycleTest() {
+ }
+
/**
* Test create repository.
*
diff --git a/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java b/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java
index 416c510710..2fd49958b6 100644
--- a/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java
+++ b/src/test/java/org/kohsuke/github/RepositoryTrafficTest.java
@@ -14,6 +14,13 @@
* The Class RepositoryTrafficTest.
*/
public class RepositoryTrafficTest extends AbstractGitHubWireMockTest {
+
+ /**
+ * Create default RepositoryTrafficTest instance
+ */
+ public RepositoryTrafficTest() {
+ }
+
final private String repositoryName = "github-api";
@SuppressWarnings("unchecked")
diff --git a/src/test/java/org/kohsuke/github/junit/WireMockMultiServerRule.java b/src/test/java/org/kohsuke/github/WireMockMultiServerRule.java
similarity index 99%
rename from src/test/java/org/kohsuke/github/junit/WireMockMultiServerRule.java
rename to src/test/java/org/kohsuke/github/WireMockMultiServerRule.java
index 3d99281cf2..0df77f446f 100644
--- a/src/test/java/org/kohsuke/github/junit/WireMockMultiServerRule.java
+++ b/src/test/java/org/kohsuke/github/WireMockMultiServerRule.java
@@ -1,4 +1,4 @@
-package org.kohsuke.github.junit;
+package org.kohsuke.github;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.client.VerificationException;
@@ -18,7 +18,6 @@
import java.util.List;
import java.util.Map;
-// TODO: Auto-generated Javadoc
/**
* The standard WireMockRule eagerly initializes a WireMockServer. This version supports multiple servers in one rule
* and takes a lazy approach to intitialization allowing us to isolate files snapshots for each method.
diff --git a/src/test/java/org/kohsuke/github/junit/WireMockRule.java b/src/test/java/org/kohsuke/github/WireMockRule.java
similarity index 99%
rename from src/test/java/org/kohsuke/github/junit/WireMockRule.java
rename to src/test/java/org/kohsuke/github/WireMockRule.java
index b7e89a6cd4..66f2baf6dc 100644
--- a/src/test/java/org/kohsuke/github/junit/WireMockRule.java
+++ b/src/test/java/org/kohsuke/github/WireMockRule.java
@@ -1,4 +1,4 @@
-package org.kohsuke.github.junit;
+package org.kohsuke.github;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.admin.model.*;
@@ -34,7 +34,6 @@
import java.util.List;
import java.util.UUID;
-// TODO: Auto-generated Javadoc
/**
* The Class WireMockRule.
*
diff --git a/src/test/java/org/kohsuke/github/junit/WireMockRuleConfiguration.java b/src/test/java/org/kohsuke/github/WireMockRuleConfiguration.java
similarity index 99%
rename from src/test/java/org/kohsuke/github/junit/WireMockRuleConfiguration.java
rename to src/test/java/org/kohsuke/github/WireMockRuleConfiguration.java
index 1960061c04..c933f885f4 100644
--- a/src/test/java/org/kohsuke/github/junit/WireMockRuleConfiguration.java
+++ b/src/test/java/org/kohsuke/github/WireMockRuleConfiguration.java
@@ -1,4 +1,4 @@
-package org.kohsuke.github.junit;
+package org.kohsuke.github;
import com.github.tomakehurst.wiremock.common.*;
import com.github.tomakehurst.wiremock.core.MappingsSaver;
@@ -22,7 +22,6 @@
import java.util.List;
import java.util.Map;
-// TODO: Auto-generated Javadoc
/**
* The Class WireMockRuleConfiguration.
*/
diff --git a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
index 07eab6a2f0..eb1a5e143a 100644
--- a/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
+++ b/src/test/java/org/kohsuke/github/WireMockStatusReporterTest.java
@@ -19,6 +19,12 @@
*/
public class WireMockStatusReporterTest extends AbstractGitHubWireMockTest {
+ /**
+ * Create default WireMockStatusReporterTest instance
+ */
+ public WireMockStatusReporterTest() {
+ }
+
/**
* User when proxying auth correctly configured.
*
diff --git a/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java b/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java
index 793da64bce..4b98cc18c5 100644
--- a/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java
+++ b/src/test/java/org/kohsuke/github/extras/authorization/JWTTokenProviderTest.java
@@ -32,6 +32,12 @@
*/
public class JWTTokenProviderTest extends AbstractGHAppInstallationTest {
+ /**
+ * Create default JWTTokenProviderTest instance
+ */
+ public JWTTokenProviderTest() {
+ }
+
private static String TEST_APP_ID_2 = "83009";
private static String PRIVATE_KEY_FILE_APP_2 = "/ghapi-test-app-2.private-key.pem";
diff --git a/src/test/java/org/kohsuke/github/internal/EnumUtilsTest.java b/src/test/java/org/kohsuke/github/internal/EnumUtilsTest.java
index b7bab96ec9..5169e947a5 100644
--- a/src/test/java/org/kohsuke/github/internal/EnumUtilsTest.java
+++ b/src/test/java/org/kohsuke/github/internal/EnumUtilsTest.java
@@ -11,6 +11,12 @@
*/
public class EnumUtilsTest {
+ /**
+ * Create default EnumUtilsTest instance
+ */
+ public EnumUtilsTest() {
+ }
+
/**
* Test get enum.
*/
diff --git a/src/test/resources/no-reflect-and-serialization-list b/src/test/resources/no-reflect-and-serialization-list
index 705a18d5e2..e1e4fa2e0d 100644
--- a/src/test/resources/no-reflect-and-serialization-list
+++ b/src/test/resources/no-reflect-and-serialization-list
@@ -30,6 +30,7 @@ org.kohsuke.github.GitHubRateLimitChecker
org.kohsuke.github.GitHubRateLimitHandler
org.kohsuke.github.GitHubRateLimitHandler$1
org.kohsuke.github.GitHubRateLimitHandler$2
+org.kohsuke.github.GitHubRequestBuilderDone
org.kohsuke.github.HttpConnector
org.kohsuke.github.HttpException
org.kohsuke.github.PagedIterator
diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/__files/1-user.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/__files/1-user.json
new file mode 100644
index 0000000000..9e0ff60437
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/__files/1-user.json
@@ -0,0 +1,47 @@
+{
+ "login": "bitwiseman",
+ "id": 1958953,
+ "node_id": "MDQ6VXNlcjE5NTg5NTM=",
+ "avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/bitwiseman",
+ "html_url": "https://github.com/bitwiseman",
+ "followers_url": "https://api.github.com/users/bitwiseman/followers",
+ "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}",
+ "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions",
+ "organizations_url": "https://api.github.com/users/bitwiseman/orgs",
+ "repos_url": "https://api.github.com/users/bitwiseman/repos",
+ "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/bitwiseman/received_events",
+ "type": "User",
+ "site_admin": false,
+ "name": "Liam Newman",
+ "company": null,
+ "blog": "",
+ "location": "Seattle, WA, USA",
+ "email": "bitwiseman@gmail.com",
+ "hireable": null,
+ "bio": null,
+ "twitter_username": "bitwiseman",
+ "notification_email": "bitwiseman@gmail.com",
+ "public_repos": 212,
+ "public_gists": 8,
+ "followers": 258,
+ "following": 12,
+ "created_at": "2012-07-11T20:38:33Z",
+ "updated_at": "2024-07-11T16:46:55Z",
+ "private_gists": 19,
+ "total_private_repos": 3,
+ "owned_private_repos": 3,
+ "disk_usage": 34051,
+ "collaborators": 4,
+ "two_factor_authentication": true,
+ "plan": {
+ "name": "free",
+ "space": 976562499,
+ "collaborators": 0,
+ "private_repos": 10000
+ }
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/__files/2-user_emails.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/__files/2-user_emails.json
new file mode 100644
index 0000000000..b5e4d9f5bc
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/__files/2-user_emails.json
@@ -0,0 +1,14 @@
+[
+ {
+ "email": "bitwiseman@gmail.com",
+ "primary": true,
+ "verified": true,
+ "visibility": "public"
+ },
+ {
+ "email": "bitwiseman@users.noreply.github.com",
+ "primary": false,
+ "verified": true,
+ "visibility": null
+ }
+]
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/mappings/1-user.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/mappings/1-user.json
new file mode 100644
index 0000000000..dedf690872
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/mappings/1-user.json
@@ -0,0 +1,48 @@
+{
+ "id": "ccd6f98f-7d6f-44a8-87ab-375e3a49d8f2",
+ "name": "user",
+ "request": {
+ "url": "/user",
+ "method": "GET",
+ "headers": {
+ "Accept": {
+ "equalTo": "application/vnd.github+json"
+ }
+ }
+ },
+ "response": {
+ "status": 200,
+ "bodyFileName": "1-user.json",
+ "headers": {
+ "Date": "Tue, 17 Sep 2024 18:41:52 GMT",
+ "Content-Type": "application/json; charset=utf-8",
+ "Cache-Control": "private, max-age=60, s-maxage=60",
+ "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With",
+ "ETag": "W/\"a27242a466c3df86c7421f5da77e7af0282d7b11679db48547af0b315d2eb3c1\"",
+ "Last-Modified": "Thu, 11 Jul 2024 16:46:55 GMT",
+ "X-OAuth-Scopes": "read:user, repo, user:email",
+ "X-Accepted-OAuth-Scopes": "",
+ "github-authentication-token-expiration": "2024-10-17 18:38:10 UTC",
+ "X-GitHub-Media-Type": "github.v3; format=json",
+ "x-github-api-version-selected": "2022-11-28",
+ "X-RateLimit-Limit": "5000",
+ "X-RateLimit-Remaining": "4991",
+ "X-RateLimit-Reset": "1726601960",
+ "X-RateLimit-Used": "9",
+ "X-RateLimit-Resource": "core",
+ "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
+ "Access-Control-Allow-Origin": "*",
+ "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
+ "X-Frame-Options": "deny",
+ "X-Content-Type-Options": "nosniff",
+ "X-XSS-Protection": "0",
+ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
+ "Content-Security-Policy": "default-src 'none'",
+ "Server": "github.com",
+ "X-GitHub-Request-Id": "6A1F:A6CDA:12AE1BE:12C74DE:66E9CD70"
+ }
+ },
+ "uuid": "ccd6f98f-7d6f-44a8-87ab-375e3a49d8f2",
+ "persistent": true,
+ "insertionIndex": 1
+}
\ No newline at end of file
diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/mappings/2-user_emails.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/mappings/2-user_emails.json
new file mode 100644
index 0000000000..067a6a1d93
--- /dev/null
+++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testGetEmails/mappings/2-user_emails.json
@@ -0,0 +1,47 @@
+{
+ "id": "f17d4d94-f19c-425e-8133-f9f3ad2bafea",
+ "name": "user_emails",
+ "request": {
+ "url": "/user/emails",
+ "method": "GET",
+ "headers": {
+ "Accept": {
+ "equalTo": "application/vnd.github+json"
+ }
+ }
+ },
+ "response": {
+ "status": 200,
+ "bodyFileName": "2-user_emails.json",
+ "headers": {
+ "Date": "Tue, 17 Sep 2024 18:41:52 GMT",
+ "Content-Type": "application/json; charset=utf-8",
+ "Cache-Control": "private, max-age=60, s-maxage=60",
+ "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With",
+ "ETag": "W/\"6e974566422ee9f8351add9d3450581b14045944d67d5b0d45d93816f7526d77\"",
+ "X-OAuth-Scopes": "read:user, repo, user:email",
+ "X-Accepted-OAuth-Scopes": "user, user:email",
+ "github-authentication-token-expiration": "2024-10-17 18:38:10 UTC",
+ "X-GitHub-Media-Type": "github.v3; format=json",
+ "x-github-api-version-selected": "2022-11-28",
+ "X-RateLimit-Limit": "5000",
+ "X-RateLimit-Remaining": "4989",
+ "X-RateLimit-Reset": "1726601960",
+ "X-RateLimit-Used": "11",
+ "X-RateLimit-Resource": "core",
+ "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
+ "Access-Control-Allow-Origin": "*",
+ "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
+ "X-Frame-Options": "deny",
+ "X-Content-Type-Options": "nosniff",
+ "X-XSS-Protection": "0",
+ "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
+ "Content-Security-Policy": "default-src 'none'",
+ "Server": "github.com",
+ "X-GitHub-Request-Id": "9EA1:32201C:118116E:119A333:66E9CD70"
+ }
+ },
+ "uuid": "f17d4d94-f19c-425e-8133-f9f3ad2bafea",
+ "persistent": true,
+ "insertionIndex": 2
+}
\ No newline at end of file