Browse Source

Add missing packages to Groovy scripts

pull/1722/merge
Sam Brannen 7 years ago
parent
commit
df0b39e8ac
  1. 4
      spring-context/src/test/resources/org/springframework/scripting/groovy/ScriptBean.groovy
  2. 3
      spring-context/src/test/resources/org/springframework/scripting/groovy/TestFactoryBean.groovy
  3. 2
      spring-context/src/test/resources/org/springframework/scripting/groovy/simple.groovy

4
spring-context/src/test/resources/org/springframework/scripting/groovy/ScriptBean.groovy

@ -1,3 +1,5 @@
package org.springframework.scripting.groovy;
import org.springframework.context.ApplicationContext import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware import org.springframework.context.ApplicationContextAware
import org.springframework.scripting.ContextScriptBean import org.springframework.scripting.ContextScriptBean
@ -10,7 +12,7 @@ class GroovyScriptBean implements ContextScriptBean, ApplicationContextAware {
int getAge() { int getAge() {
return this.age return this.age
} }
void setAge(int age) { void setAge(int age) {
this.age = age this.age = age
} }

3
spring-context/src/test/resources/org/springframework/scripting/groovy/TestFactoryBean.groovy

@ -1,3 +1,5 @@
package org.springframework.scripting.groovy;
import org.springframework.beans.factory.FactoryBean import org.springframework.beans.factory.FactoryBean
class TestFactoryBean implements FactoryBean { class TestFactoryBean implements FactoryBean {
@ -13,5 +15,4 @@ class TestFactoryBean implements FactoryBean {
public Object getObject() { public Object getObject() {
"test" "test"
} }
} }

2
spring-context/src/test/resources/org/springframework/scripting/groovy/simple.groovy

@ -1 +1,3 @@
package org.springframework.scripting.groovy;
return 3 * 2 return 3 * 2

Loading…
Cancel
Save