Skip to content

Commit

Permalink
Update to GH-125: Test should now work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsNielsen committed Aug 14, 2018
1 parent 335307c commit 6a684d0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.git.Branch;
import hudson.plugins.git.GitSCM;
import hudson.plugins.git.Revision;
import org.eclipse.jgit.lib.PersonIdent;
Expand All @@ -20,6 +21,8 @@
import org.jenkinsci.plugins.pretestedintegration.scm.git.GitIntegrationStrategy;
import org.junit.Test;

import java.io.IOException;

public class GitIntegrationStrategyTest {
@Test
public void getPersonIdentTest() throws Exception{
Expand All @@ -33,11 +36,12 @@ public void getPersonIdentTest() throws Exception{
private GitIntegrationStrategy getDummyStrategy() {
return new GitIntegrationStrategy() {
@Override
public void integrate(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, AbstractSCMBridge bridge) throws IntegrationFailedException, NothingToDoException, UnsupportedConfigurationException {
public void integrateAsGitPluginExt(GitSCM scm, Run<?, ?> build, GitClient git, TaskListener listener, Revision marked, Branch triggeredBranch, GitBridge bridge) throws IntegrationFailedException, NothingToDoException, UnsupportedConfigurationException, IOException, InterruptedException {
throw new UnsupportedOperationException("Dummies can't integrate.");
}

@Override
public void integrateAsGitPluginExt(GitSCM scm, Run<?, ?> build, GitClient git, TaskListener listener, Revision marked, Revision rev, GitBridge bridge) throws NothingToDoException, IntegrationFailedException {
public void integrate(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, AbstractSCMBridge bridge) throws IntegrationFailedException, NothingToDoException, UnsupportedConfigurationException {
throw new UnsupportedOperationException("Dummies can't integrate.");
}
};
Expand Down

0 comments on commit 6a684d0

Please sign in to comment.