@@ -780,6 +780,7 @@ class StepContextSpec extends Specification {
780780 scriptSourceNode. command. size() == 1
781781 scriptSourceNode. command[0 ]. value() == " println 'Hello World!'"
782782 1 * jobManagement. requirePlugin(' groovy' )
783+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
783784
784785 when :
785786 context. groovyCommand(' acme.Acme.doSomething()' , ' Groovy 2.0' ) {
@@ -817,6 +818,7 @@ class StepContextSpec extends Specification {
817818 acmeScriptSourceNode. command. size() == 1
818819 acmeScriptSourceNode. command[0 ]. value() == ' acme.Acme.doSomething()'
819820 1 * jobManagement. requirePlugin(' groovy' )
821+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
820822 }
821823
822824 def ' call groovyScriptFile methods' () {
@@ -845,6 +847,7 @@ class StepContextSpec extends Specification {
845847 scriptSourceNode. scriptFile. size() == 1
846848 scriptSourceNode. scriptFile[0 ]. value() == ' scripts/hello.groovy'
847849 1 * jobManagement. requirePlugin(' groovy' )
850+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
848851
849852 when :
850853 context. groovyScriptFile(' acme.groovy' , ' Groovy 2.0' ) {
@@ -894,6 +897,7 @@ class StepContextSpec extends Specification {
894897 groovy21Node. groovyName. size() == 1
895898 groovy21Node. groovyName[0 ]. value() == ' Groovy 2.1'
896899 1 * jobManagement. requirePlugin(' groovy' )
900+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
897901 }
898902
899903 def ' call systemGroovyCommand methods' () {
@@ -914,6 +918,7 @@ class StepContextSpec extends Specification {
914918 scriptSourceNode. command. size() == 1
915919 scriptSourceNode. command[0 ]. value() == " println 'Hello World!'"
916920 1 * jobManagement. requirePlugin(' groovy' )
921+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
917922
918923 when :
919924 context. systemGroovyCommand(' acme.Acme.doSomething()' ) {
@@ -937,6 +942,7 @@ class StepContextSpec extends Specification {
937942 acmeScriptSourceNode. command. size() == 1
938943 acmeScriptSourceNode. command[0 ]. value() == ' acme.Acme.doSomething()'
939944 1 * jobManagement. requirePlugin(' groovy' )
945+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
940946 }
941947
942948 def ' call systemGroovyScriptFile methods' () {
@@ -957,6 +963,7 @@ class StepContextSpec extends Specification {
957963 scriptSourceNode. scriptFile. size() == 1
958964 scriptSourceNode. scriptFile[0 ]. value() == ' scripts/hello.groovy'
959965 1 * jobManagement. requirePlugin(' groovy' )
966+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
960967
961968 when :
962969 context. systemGroovyScriptFile(' acme.groovy' ) {
@@ -980,6 +987,7 @@ class StepContextSpec extends Specification {
980987 acmeScriptSourceNode. scriptFile. size() == 1
981988 acmeScriptSourceNode. scriptFile[0 ]. value() == ' acme.groovy'
982989 1 * jobManagement. requirePlugin(' groovy' )
990+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
983991 }
984992
985993 def ' call systemGroovyCommand methods with plugin version 2.0' () {
@@ -1006,6 +1014,7 @@ class StepContextSpec extends Specification {
10061014 }
10071015 }
10081016 1 * jobManagement. requirePlugin(' groovy' )
1017+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
10091018
10101019 when :
10111020 context. systemGroovyCommand(' acme.Acme.doSomething()' ) {
@@ -1037,6 +1046,7 @@ class StepContextSpec extends Specification {
10371046 }
10381047 1 * jobManagement. requirePlugin(' groovy' )
10391048 1 * jobManagement. requireMinimumPluginVersion(' groovy' , ' 2.0' )
1049+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
10401050 }
10411051
10421052 def ' call systemGroovyCommand with invalid classpath and plugin version 2.0' () {
@@ -1073,6 +1083,7 @@ class StepContextSpec extends Specification {
10731083 }
10741084 }
10751085 1 * jobManagement. requirePlugin(' groovy' )
1086+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
10761087
10771088 when :
10781089 context. systemGroovyScriptFile(' acme.groovy' ) {
@@ -1096,6 +1107,7 @@ class StepContextSpec extends Specification {
10961107 }
10971108 }
10981109 1 * jobManagement. requirePlugin(' groovy' )
1110+ 1 * jobManagement. logPluginDeprecationWarning(' groovy' , ' 2.0' )
10991111 }
11001112
11011113 def ' call copyArtifacts selector variants' () {
0 commit comments