File tree 3 files changed +30
-2
lines changed
spring-batch-infrastructure
src/test/java/org/springframework/batch/item/support
3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 129
129
<jtds .version>1.3.1</jtds .version>
130
130
<testcontainers .version>1.20.4</testcontainers .version>
131
131
<jsonassert .version>1.5.3</jsonassert .version>
132
+ <groovy-jsr223 .version>4.0.23</groovy-jsr223 .version>
133
+ <nashorn .version>15.4</nashorn .version>
134
+ <beanshell .version>2.0b6</beanshell .version>
135
+ <jruby .version>9.4.8.0</jruby .version>
132
136
133
137
<!-- samples dependencies -->
134
138
<spring-rabbit .version>${spring-amqp.version} </spring-rabbit .version>
Original file line number Diff line number Diff line change 529
529
<version >${angus-mail.version} </version >
530
530
<scope >test</scope >
531
531
</dependency >
532
+ <dependency >
533
+ <groupId >org.apache.groovy</groupId >
534
+ <artifactId >groovy-jsr223</artifactId >
535
+ <version >${groovy-jsr223.version} </version >
536
+ <scope >test</scope >
537
+ </dependency >
538
+ <dependency >
539
+ <groupId >org.openjdk.nashorn</groupId >
540
+ <artifactId >nashorn-core</artifactId >
541
+ <version >${nashorn.version} </version >
542
+ <scope >test</scope >
543
+ </dependency >
544
+ <dependency >
545
+ <groupId >org.apache-extras.beanshell</groupId >
546
+ <artifactId >bsh</artifactId >
547
+ <version >${beanshell.version} </version >
548
+ <scope >test</scope >
549
+ </dependency >
550
+ <dependency >
551
+ <groupId >org.jruby</groupId >
552
+ <artifactId >jruby</artifactId >
553
+ <version >${jruby.version} </version >
554
+ <scope >test</scope >
555
+ </dependency >
532
556
533
557
<!-- provided dependencies -->
534
558
<dependency >
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ void testJRubyScriptSourceSimple() throws Exception {
82
82
assumeTrue (languageExists ("jruby" ));
83
83
84
84
ScriptItemProcessor <String , Object > scriptItemProcessor = new ScriptItemProcessor <>();
85
- scriptItemProcessor .setScriptSource ("$ item.upcase" , "jruby" );
85
+ scriptItemProcessor .setScriptSource ("item.upcase" , "jruby" );
86
86
scriptItemProcessor .afterPropertiesSet ();
87
87
88
88
assertEquals ("SS" , scriptItemProcessor .process ("ss" ), "Incorrect transformed value" );
@@ -93,7 +93,7 @@ void testJRubyScriptSourceMethod() throws Exception {
93
93
assumeTrue (languageExists ("jruby" ));
94
94
95
95
ScriptItemProcessor <String , Object > scriptItemProcessor = new ScriptItemProcessor <>();
96
- scriptItemProcessor .setScriptSource ("def process(item) $ item.upcase end \n process($ item)" , "jruby" );
96
+ scriptItemProcessor .setScriptSource ("def process(item) item.upcase end \n process(item)" , "jruby" );
97
97
scriptItemProcessor .afterPropertiesSet ();
98
98
99
99
assertEquals ("SS" , scriptItemProcessor .process ("ss" ), "Incorrect transformed value" );
You can’t perform that action at this time.
0 commit comments