diff --git a/vraptor-core/src/test/java/br/com/caelum/vraptor/core/JstlLocalizationTest.java b/vraptor-core/src/test/java/br/com/caelum/vraptor/core/JstlLocalizationTest.java index 3ebf3dac1..5da07a821 100644 --- a/vraptor-core/src/test/java/br/com/caelum/vraptor/core/JstlLocalizationTest.java +++ b/vraptor-core/src/test/java/br/com/caelum/vraptor/core/JstlLocalizationTest.java @@ -35,12 +35,6 @@ public class JstlLocalizationTest { private ServletContext servletContext; private HttpSession session; - private static ResourceBundle bundle = new ListResourceBundle() { - protected Object[][] getContents() { - return new Object[][] { { "my.key", "abc" } }; - } - }; - @Before public void setUp() { request = mock(MutableRequest.class); @@ -49,6 +43,12 @@ public void setUp() { localization = new JstlLocalization(request); + ResourceBundle bundle = new ListResourceBundle() { + protected Object[][] getContents() { + return new Object[][] { { "my.key", "abc" } }; + } + }; + LocalizationContext context = new LocalizationContext(bundle); when(request.getAttribute(FMT_LOCALIZATION_CONTEXT + ".request")).thenReturn(context);