Skip to content

Commit

Permalink
Skip test producers
Browse files Browse the repository at this point in the history
  • Loading branch information
garcia-jj committed Sep 25, 2013
1 parent 20c8501 commit e0cf92b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit e0cf92b

Please sign in to comment.