make this servlet thread safe!!

This commit is contained in:
Olivier Lamy 2014-10-13 16:19:42 +11:00
parent c2f9100dda
commit 70bc09fbb9
2 changed files with 5 additions and 5 deletions

View File

@ -78,8 +78,6 @@ public class RssFeedServlet
private Logger log = LoggerFactory.getLogger( RssFeedServlet.class );
private RssFeedProcessor processor;
private WebApplicationContext wac;
private UserRepositories userRepositories;
@ -131,6 +129,8 @@ public class RssFeedServlet
return;
}
RssFeedProcessor processor = null;
try
{
Map<String, String> map = new HashMap<>();

View File

@ -431,7 +431,7 @@ public class RssFeedServletTest
}
@Ignore
public void XXX_testInvalidRequest()
public void testInvalidRequest()
throws Exception
{
//RssFeedServlet servlet =
@ -450,7 +450,7 @@ public class RssFeedServletTest
}
@Ignore
public void XXX_testInvalidAuthenticationRequest()
public void testInvalidAuthenticationRequest()
throws Exception
{
//RssFeedServlet servlet =
@ -476,7 +476,7 @@ public class RssFeedServletTest
}
@Ignore
public void XXX_testUnauthorizedRequest()
public void testUnauthorizedRequest()
throws Exception
{