From df0b39e8acd8566f9b0e79989a9897b251390687 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 7 Mar 2018 15:33:38 +0100 Subject: [PATCH] Add missing packages to Groovy scripts --- .../org/springframework/scripting/groovy/ScriptBean.groovy | 4 +++- .../springframework/scripting/groovy/TestFactoryBean.groovy | 3 ++- .../org/springframework/scripting/groovy/simple.groovy | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/spring-context/src/test/resources/org/springframework/scripting/groovy/ScriptBean.groovy b/spring-context/src/test/resources/org/springframework/scripting/groovy/ScriptBean.groovy index a6b437ef68..f83f9a5fe4 100644 --- a/spring-context/src/test/resources/org/springframework/scripting/groovy/ScriptBean.groovy +++ b/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.ApplicationContextAware import org.springframework.scripting.ContextScriptBean @@ -10,7 +12,7 @@ class GroovyScriptBean implements ContextScriptBean, ApplicationContextAware { int getAge() { return this.age } - + void setAge(int age) { this.age = age } diff --git a/spring-context/src/test/resources/org/springframework/scripting/groovy/TestFactoryBean.groovy b/spring-context/src/test/resources/org/springframework/scripting/groovy/TestFactoryBean.groovy index e86c13a6ef..9e8da5df67 100644 --- a/spring-context/src/test/resources/org/springframework/scripting/groovy/TestFactoryBean.groovy +++ b/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 class TestFactoryBean implements FactoryBean { @@ -13,5 +15,4 @@ class TestFactoryBean implements FactoryBean { public Object getObject() { "test" } - } diff --git a/spring-context/src/test/resources/org/springframework/scripting/groovy/simple.groovy b/spring-context/src/test/resources/org/springframework/scripting/groovy/simple.groovy index 1bb7d85d79..b999147fe6 100644 --- a/spring-context/src/test/resources/org/springframework/scripting/groovy/simple.groovy +++ b/spring-context/src/test/resources/org/springframework/scripting/groovy/simple.groovy @@ -1 +1,3 @@ +package org.springframework.scripting.groovy; + return 3 * 2