mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
Revert "Removed extraneous author javadocs"
This reverts commit 888abc9e2a.
This commit is contained in:
@@ -11,6 +11,8 @@ import java.io.StringReader;
|
||||
/**
|
||||
* App to test the hook script. You need some internet-facing server that can forward the request to you (typically via
|
||||
* SSH reverse port forwarding.)
|
||||
*
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class HookApp {
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
||||
@@ -25,7 +25,8 @@ import static org.junit.Assume.assumeFalse;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public abstract class AbstractGitHubWireMockTest extends Assert {
|
||||
|
||||
private final GitHubBuilder githubBuilder = createGitHubBuilder();
|
||||
|
||||
@@ -26,6 +26,8 @@ import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||
* same number of requests as OkHttp without caching, but those requests only count towards the GitHub rate limit if
|
||||
* data has changes.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class AbuseLimitHandlerTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@ import static org.hamcrest.CoreMatchers.is;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class BridgeMethodTest extends Assert {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -6,7 +6,8 @@ import org.junit.Test;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class CommitTest extends AbstractGitHubWireMockTest {
|
||||
@Test // issue 152
|
||||
public void lastStatus() throws IOException {
|
||||
|
||||
@@ -13,6 +13,8 @@ import static org.hamcrest.Matchers.*;
|
||||
|
||||
/**
|
||||
* Tests for the GitHub App API methods
|
||||
*
|
||||
* @author Paulo Miguel Almeida
|
||||
*/
|
||||
public class GHAppTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ import org.junit.Test;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Martin van Zijl
|
||||
*/
|
||||
public class GHDeploymentTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -6,7 +6,8 @@ import static org.hamcrest.Matchers.notNullValue;
|
||||
import static org.hamcrest.core.Is.is;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class GHGistTest extends AbstractGitHubWireMockTest {
|
||||
@Test
|
||||
public void lifecycleTest() throws Exception {
|
||||
|
||||
@@ -8,7 +8,8 @@ import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Martin van Zijl
|
||||
*/
|
||||
public class GHGistUpdaterTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
private GHGist gist;
|
||||
|
||||
@@ -17,7 +17,8 @@ import static org.hamcrest.Matchers.hasKey;
|
||||
import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Kanstantsin Shautsou
|
||||
*/
|
||||
public class GHHookTest {
|
||||
|
||||
@Ignore
|
||||
|
||||
@@ -6,7 +6,8 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Martin van Zijl
|
||||
*/
|
||||
public class GHIssueEventTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -31,7 +31,8 @@ import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Duncan Dickinson
|
||||
*/
|
||||
public class GHLicenseTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,8 @@ import static org.kohsuke.github.GHMarketplaceListAccountBuilder.Sort.UPDATED;
|
||||
|
||||
/**
|
||||
* Tests for the GitHub MarketPlace Plan API methods
|
||||
*
|
||||
* @author Paulo Miguel Almeida
|
||||
*/
|
||||
public class GHMarketplacePlanTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ import java.util.Date;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Martin van Zijl
|
||||
*/
|
||||
public class GHMilestoneTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Before
|
||||
|
||||
@@ -5,7 +5,8 @@ import org.junit.Test;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Martin van Zijl
|
||||
*/
|
||||
public class GHPersonTest extends AbstractGitHubWireMockTest {
|
||||
@Test
|
||||
public void testFieldsForOrganization() throws Exception {
|
||||
|
||||
@@ -9,7 +9,8 @@ import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Gunnar Skjold
|
||||
*/
|
||||
public class GHProjectCardTest extends AbstractGitHubWireMockTest {
|
||||
private GHOrganization org;
|
||||
private GHProject project;
|
||||
|
||||
@@ -9,7 +9,8 @@ import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Gunnar Skjold
|
||||
*/
|
||||
public class GHProjectColumnTest extends AbstractGitHubWireMockTest {
|
||||
private GHProject project;
|
||||
private GHProjectColumn column;
|
||||
|
||||
@@ -9,7 +9,8 @@ import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Gunnar Skjold
|
||||
*/
|
||||
public class GHProjectTest extends AbstractGitHubWireMockTest {
|
||||
private GHProject project;
|
||||
|
||||
|
||||
@@ -12,7 +12,8 @@ import java.util.List;
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Kohsuke Kawaguchi
|
||||
*/
|
||||
public class GHPullRequestTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Before
|
||||
|
||||
@@ -30,6 +30,8 @@ import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||
* same number of requests as OkHttp without caching, but those requests only count towards the GitHub rate limit if
|
||||
* data has changes.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class GHRateLimitTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -14,7 +14,8 @@ import static org.hamcrest.Matchers.*;
|
||||
import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
protected GHRepository getRepository() throws IOException {
|
||||
|
||||
@@ -10,6 +10,8 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Martin van Zijl
|
||||
*/
|
||||
public class GHTagTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ import static org.hamcrest.core.Is.is;
|
||||
|
||||
/**
|
||||
* Unit test for {@link GitHub} static helpers.
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class GitHubStaticTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Kevin Harrington mad.hephaestus@gmail.com
|
||||
*/
|
||||
public class Github2faTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -13,7 +13,8 @@ import java.io.Reader;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Stephen Connolly
|
||||
*/
|
||||
public class PayloadRule implements TestRule {
|
||||
|
||||
private final String type;
|
||||
|
||||
@@ -26,6 +26,8 @@ import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||
* same number of requests as OkHttp without caching, but those requests only count towards the GitHub rate limit if
|
||||
* data has changes.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class RateLimitHandlerTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -30,7 +30,8 @@ import static com.github.tomakehurst.wiremock.client.WireMock.*;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Victor Martinez
|
||||
*/
|
||||
public class RequesterRetryTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
private static Logger log = Logger.getLogger(GitHubClient.class.getName()); // matches the logger in the affected
|
||||
|
||||
@@ -12,6 +12,8 @@ import static org.junit.Assume.assumeTrue;
|
||||
* Tests in this class are meant to show the behavior of {@link AbstractGitHubWireMockTest} with proxying on or off.
|
||||
* <p>
|
||||
* The wiremock data for these tests should only be modified by hand - thus most are skipped when snapshotting.
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class WireMockStatusReporterTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ import static org.junit.Assert.fail;
|
||||
|
||||
/**
|
||||
* Test showing the behavior of OkHttpConnector cache with GitHub 404 responses.
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class GitHubCachingTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ import static org.junit.Assume.assumeTrue;
|
||||
* same number of requests as OkHttp without caching, but those requests only count towards the GitHub rate limit if
|
||||
* data has changes.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class OkHttpConnectorTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@ import static org.junit.Assert.fail;
|
||||
|
||||
/**
|
||||
* Test showing the behavior of OkHttpConnector cache with GitHub 404 responses.
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class GitHubCachingTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ import static org.junit.Assume.assumeTrue;
|
||||
* same number of requests as OkHttp without caching, but those requests only count towards the GitHub rate limit if
|
||||
* data has changes.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class OkHttpConnectorTest extends AbstractGitHubWireMockTest {
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ import static com.github.tomakehurst.wiremock.common.Gzip.unGzipToString;
|
||||
/**
|
||||
* The standard WireMockRule eagerly initializes a WireMockServer. This version suptakes a laze approach allowing us to
|
||||
* automatically isolate snapshots for each method.
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class GitHubWireMockRule extends WireMockMultiServerRule {
|
||||
|
||||
|
||||
@@ -21,6 +21,8 @@ import java.util.Map;
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class WireMockMultiServerRule implements MethodRule, TestRule {
|
||||
|
||||
|
||||
@@ -34,7 +34,8 @@ import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*/
|
||||
* @author Liam Newman
|
||||
*/
|
||||
public class WireMockRule implements MethodRule, TestRule, Container, Stubbing, Admin {
|
||||
|
||||
private WireMockServer wireMockServer;
|
||||
|
||||
Reference in New Issue
Block a user