Skip to content

Commit

Permalink
[JENKINS-43536] - Resolve compatibility issue between the latest JTH …
Browse files Browse the repository at this point in the history
…and Mockito
  • Loading branch information
oleg-nenashev committed May 10, 2017
1 parent b799e3a commit b273187
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.26</version>
<version>2.28</version>
</parent>

<artifactId>envinject</artifactId>
Expand Down Expand Up @@ -102,7 +102,7 @@

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
Expand All @@ -118,7 +118,6 @@
<artifactId>script-security</artifactId>
<version>1.22</version>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
Expand Down
Expand Up @@ -31,7 +31,7 @@
public class EnvInjectPasswordsMasker implements Serializable {

/**
* @deprecated Use {@link #maskPasswordsIfAny(hudson.model.Run, java.util.Map, org.jenkinsci.lib.envinject.EnvInjectLogger)}
* @deprecated Use {@link #maskPasswordParametersIfAny(hudson.model.Run, java.util.Map, org.jenkinsci.lib.envinject.EnvInjectLogger)}
*/
@Deprecated
public void maskPasswordsIfAny(@Nonnull AbstractBuild run, @Nonnull EnvInjectLogger logger, @Nonnull Map<String, String> envVars) {
Expand Down
Expand Up @@ -14,10 +14,10 @@

import static com.google.common.base.Joiner.on;
import static hudson.model.Result.SUCCESS;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.jenkinsci.plugins.envinject.matchers.WithEnvInjectActionMatchers.withCause;
import static org.jenkinsci.plugins.envinject.matchers.WithEnvInjectActionMatchers.withCausesIsTrue;
import static org.junit.Assert.assertThat;

/**
* @author Gregory Boissinot
Expand Down
Expand Up @@ -2,7 +2,6 @@

import static com.google.common.collect.ImmutableMap.of;
import static hudson.Util.replaceMacro;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasEntry;
import static org.jenkinsci.plugins.envinject.matchers.WithEnvInjectActionMatchers.map;
Expand All @@ -28,10 +27,10 @@
import org.jvnet.hudson.test.CaptureEnvironmentBuilder;

import jenkins.model.Jenkins;
import static org.hamcrest.Matchers.containsString;
import org.jenkinsci.plugins.envinject.util.TestUtils;
import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval;
import org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException;
import static org.junit.Assert.assertThat;
import org.jvnet.hudson.test.MockAuthorizationStrategy;

public class EnvInjectBuildWrapperTest {
Expand Down
Expand Up @@ -31,9 +31,9 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import static org.hamcrest.Matchers.containsString;

import static org.hamcrest.collection.IsMapContaining.hasEntry;
import static org.hamcrest.core.StringContains.containsString;
import org.jenkinsci.plugins.envinject.util.TestUtils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
Expand Down

0 comments on commit b273187

Please sign in to comment.