Skip to content

Commit

Permalink
Deprecate tests that intentionally test deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed May 30, 2020
1 parent aac2d51 commit 6863f10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/hudson/plugins/git/GitSCMTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,7 @@ public FakeParametersAction(StringParameterValue params) {
this.m_forwardingAction = new ParametersAction(params);
}

@Deprecated
public void buildEnvVars(AbstractBuild<?, ?> ab, EnvVars ev) {
this.m_forwardingAction.buildEnvVars(ab, ev);
}
Expand Down Expand Up @@ -2660,6 +2661,7 @@ public void testSha1NotificationBranches() throws Exception {
* in the build data, but no branch name.
*/
@Test
@Deprecated // Testing deprecated buildEnvVars
public void testNoNullPointerExceptionWithNullBranch() throws Exception {
ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d");

Expand Down Expand Up @@ -2695,6 +2697,7 @@ public void testNoNullPointerExceptionWithNullBranch() throws Exception {
}

@Test
@Deprecated // Testing deprecated buildEnvVars
public void testBuildEnvVarsLocalBranchStarStar() throws Exception {
ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d");

Expand Down Expand Up @@ -2736,6 +2739,7 @@ public void testBuildEnvVarsLocalBranchStarStar() throws Exception {
}

@Test
@Deprecated // Testing deprecated buildEnvVars
public void testBuildEnvVarsLocalBranchNull() throws Exception {
ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d");

Expand Down Expand Up @@ -2777,6 +2781,7 @@ public void testBuildEnvVarsLocalBranchNull() throws Exception {
}

@Test
@Deprecated // testing deprecated buildEnvVars
public void testBuildEnvVarsLocalBranchNotSet() throws Exception {
ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d");

Expand Down

0 comments on commit 6863f10

Please sign in to comment.