-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from basil/refresh
Upgrade plugin parent POM, SpotBugs, Hamcrest, and Mockito; fix Javadoc
- Loading branch information
Showing
42 changed files
with
101 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
/** | ||
* Add the Github Logo/Icon to the sidebar. | ||
* | ||
* @author Stefan Saasen <[email protected]> | ||
* @author <a href="mailto:[email protected]">Stefan Saasen</a> | ||
*/ | ||
public final class GithubLinkAction implements Action { | ||
|
||
|
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 |
---|---|---|
|
@@ -17,11 +17,11 @@ | |
* <p> | ||
* It's based on the TracLinkAnnotator. | ||
* <p> | ||
* | ||
* @author Stefan Saasen <[email protected]> | ||
* @todo Change the annotator to use GithubUrl instead of the String url. | ||
* TODO Change the annotator to use GithubUrl instead of the String url. | ||
* Knowledge about the github url structure should be encapsulated in | ||
* GithubUrl. | ||
* | ||
* @author <a href="mailto:[email protected]">Stefan Saasen</a> | ||
*/ | ||
@Extension | ||
public class GithubLinkAnnotator extends ChangeLogAnnotator { | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
* - URL to the GitHub project | ||
* - Build status context name | ||
* | ||
* @author Stefan Saasen <[email protected]> | ||
* @author <a href="mailto:[email protected]">Stefan Saasen</a> | ||
*/ | ||
public final class GithubProjectProperty extends JobProperty<Job<?, ?>> { | ||
|
||
|
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 org.apache.commons.lang.StringUtils; | ||
|
||
/** | ||
* @author Stefan Saasen <[email protected]> | ||
* @author <a href="mailto:[email protected]">Stefan Saasen</a> | ||
*/ | ||
public final class GithubUrl { | ||
|
||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
/** | ||
* Stores common methods for {@link BuildData} handling. | ||
* | ||
* @author Oleg Nenashev <[email protected]> | ||
* @author <a href="mailto:[email protected]">Oleg Nenashev</a> | ||
* @since 1.10 | ||
*/ | ||
public final class BuildDataHelper { | ||
|
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 |
---|---|---|
|
@@ -18,17 +18,17 @@ | |
import org.jenkinsci.plugins.github.test.GHMockRule; | ||
import org.jenkinsci.plugins.github.test.GHMockRule.FixedGHRepoNameTestContributor; | ||
import org.jenkinsci.plugins.github.test.InjectJenkinsMembersRule; | ||
import org.junit.Before; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.rules.ExternalResource; | ||
import org.junit.rules.RuleChain; | ||
import org.junit.runner.RunWith; | ||
import org.jvnet.hudson.test.Issue; | ||
import org.jvnet.hudson.test.JenkinsRule; | ||
import org.jvnet.hudson.test.TestBuilder; | ||
import org.jvnet.hudson.test.TestExtension; | ||
import org.mockito.Mock; | ||
import org.mockito.runners.MockitoJUnitRunner; | ||
import org.mockito.junit.MockitoJUnitRunner; | ||
|
||
import javax.inject.Inject; | ||
|
||
|
@@ -43,7 +43,7 @@ | |
/** | ||
* Tests for {@link GitHubCommitNotifier}. | ||
* | ||
* @author Oleg Nenashev <[email protected]> | ||
* @author <a href="mailto:[email protected]">Oleg Nenashev</a> | ||
*/ | ||
@RunWith(MockitoJUnitRunner.class) | ||
public class GitHubCommitNotifierTest { | ||
|
@@ -72,15 +72,12 @@ public class GitHubCommitNotifierTest { | |
.stubStatuses(); | ||
|
||
|
||
@Rule | ||
public ExternalResource prep = new ExternalResource() { | ||
@Override | ||
protected void before() throws Throwable { | ||
@Before | ||
public void before() throws Throwable { | ||
when(data.getLastBuiltRevision()).thenReturn(rev); | ||
data.lastBuild = new hudson.plugins.git.util.Build(rev, rev, 0, Result.SUCCESS); | ||
when(rev.getSha1()).thenReturn(ObjectId.fromString(SOME_SHA)); | ||
} | ||
}; | ||
} | ||
|
||
@Test | ||
@Issue("JENKINS-23641") | ||
|
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 |
---|---|---|
|
@@ -17,9 +17,9 @@ | |
import org.jenkinsci.plugins.github.test.GHMockRule; | ||
import org.jenkinsci.plugins.github.test.GHMockRule.FixedGHRepoNameTestContributor; | ||
import org.jenkinsci.plugins.github.test.InjectJenkinsMembersRule; | ||
import org.junit.Before; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.rules.ExternalResource; | ||
import org.junit.rules.RuleChain; | ||
import org.junit.runner.RunWith; | ||
import org.jvnet.hudson.test.Issue; | ||
|
@@ -28,7 +28,7 @@ | |
import org.jvnet.hudson.test.TestExtension; | ||
import org.jvnet.hudson.test.recipes.LocalData; | ||
import org.mockito.Mock; | ||
import org.mockito.runners.MockitoJUnitRunner; | ||
import org.mockito.junit.MockitoJUnitRunner; | ||
|
||
import javax.inject.Inject; | ||
import java.util.List; | ||
|
@@ -42,7 +42,7 @@ | |
/** | ||
* Tests for {@link GitHubSetCommitStatusBuilder}. | ||
* | ||
* @author Oleg Nenashev <[email protected]> | ||
* @author <a href="mailto:[email protected]">Oleg Nenashev</a> | ||
*/ | ||
@RunWith(MockitoJUnitRunner.class) | ||
public class GitHubSetCommitStatusBuilderTest { | ||
|
@@ -72,15 +72,12 @@ public class GitHubSetCommitStatusBuilderTest { | |
.stubRepo() | ||
.stubStatuses(); | ||
|
||
@Rule | ||
public ExternalResource prep = new ExternalResource() { | ||
@Override | ||
protected void before() throws Throwable { | ||
@Before | ||
public void before() throws Throwable { | ||
when(data.getLastBuiltRevision()).thenReturn(rev); | ||
data.lastBuild = new hudson.plugins.git.util.Build(rev, rev, 0, Result.SUCCESS); | ||
when(rev.getSha1()).thenReturn(ObjectId.fromString(SOME_SHA)); | ||
} | ||
}; | ||
} | ||
|
||
@Test | ||
@Issue("JENKINS-23641") | ||
|
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
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
2 changes: 1 addition & 1 deletion
2
src/test/java/com/coravy/hudson/plugins/github/GithubUrlTest.java
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
Oops, something went wrong.