Revert "Removed extraneous author javadocs"

This reverts commit 888abc9e2a.
This commit is contained in:
Liam Newman
2020-03-04 11:32:12 -08:00
parent c22a718d14
commit a42305dd59
151 changed files with 241 additions and 21 deletions

View File

@@ -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 {

View File

@@ -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();

View File

@@ -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 {

View File

@@ -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

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -5,7 +5,8 @@ import org.junit.Test;
import java.io.IOException;
/**
*/
* @author Martin van Zijl
*/
public class GHDeploymentTest extends AbstractGitHubWireMockTest {
@Test

View File

@@ -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 {

View File

@@ -8,7 +8,8 @@ import java.io.IOException;
import java.util.Map;
/**
*/
* @author Martin van Zijl
*/
public class GHGistUpdaterTest extends AbstractGitHubWireMockTest {
private GHGist gist;

View File

@@ -17,7 +17,8 @@ import static org.hamcrest.Matchers.hasKey;
import static org.hamcrest.core.IsInstanceOf.instanceOf;
/**
*/
* @author Kanstantsin Shautsou
*/
public class GHHookTest {
@Ignore

View File

@@ -6,7 +6,8 @@ import java.io.IOException;
import java.util.List;
/**
*/
* @author Martin van Zijl
*/
public class GHIssueEventTest extends AbstractGitHubWireMockTest {
@Test

View File

@@ -31,7 +31,8 @@ import java.io.IOException;
import java.net.URL;
/**
*/
* @author Duncan Dickinson
*/
public class GHLicenseTest extends AbstractGitHubWireMockTest {
/**

View File

@@ -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 {

View File

@@ -10,7 +10,8 @@ import java.util.Date;
import static org.junit.Assert.assertEquals;
/**
*/
* @author Martin van Zijl
*/
public class GHMilestoneTest extends AbstractGitHubWireMockTest {
@Before

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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;

View File

@@ -9,7 +9,8 @@ import java.io.FileNotFoundException;
import java.io.IOException;
/**
*/
* @author Gunnar Skjold
*/
public class GHProjectTest extends AbstractGitHubWireMockTest {
private GHProject project;

View File

@@ -12,7 +12,8 @@ import java.util.List;
import static org.hamcrest.CoreMatchers.*;
/**
*/
* @author Kohsuke Kawaguchi
*/
public class GHPullRequestTest extends AbstractGitHubWireMockTest {
@Before

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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;