From 6863f105a388e1d65bb35efe6be60831e7234631 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Sat, 30 May 2020 14:28:48 -0600 Subject: [PATCH] Deprecate tests that intentionally test deprecated methods --- src/test/java/hudson/plugins/git/GitSCMTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/hudson/plugins/git/GitSCMTest.java b/src/test/java/hudson/plugins/git/GitSCMTest.java index d6e53ad982..f7e43d653a 100644 --- a/src/test/java/hudson/plugins/git/GitSCMTest.java +++ b/src/test/java/hudson/plugins/git/GitSCMTest.java @@ -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); } @@ -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"); @@ -2695,6 +2697,7 @@ public void testNoNullPointerExceptionWithNullBranch() throws Exception { } @Test + @Deprecated // Testing deprecated buildEnvVars public void testBuildEnvVarsLocalBranchStarStar() throws Exception { ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d"); @@ -2736,6 +2739,7 @@ public void testBuildEnvVarsLocalBranchStarStar() throws Exception { } @Test + @Deprecated // Testing deprecated buildEnvVars public void testBuildEnvVarsLocalBranchNull() throws Exception { ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d"); @@ -2777,6 +2781,7 @@ public void testBuildEnvVarsLocalBranchNull() throws Exception { } @Test + @Deprecated // testing deprecated buildEnvVars public void testBuildEnvVarsLocalBranchNotSet() throws Exception { ObjectId sha1 = ObjectId.fromString("2cec153f34767f7638378735dc2b907ed251a67d");