Skip to content

Commit

Permalink
Rename ReactServlet method to give it the same camelCasing as a metho…
Browse files Browse the repository at this point in the history
…d in the FrontendServlet base class
  • Loading branch information
steinarb committed Mar 29, 2020
1 parent 654a595 commit e0027f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ public ReactServlet() {
setRoutes("/", "/counter", "/about");
}

@Override
@Reference
public void setLogservice(LogService logservice) {
public void setLogService(LogService logservice) {
super.setLogService(logservice);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void testDoGetSuccess() throws Exception {
MockHttpServletResponse response = mock(MockHttpServletResponse.class, CALLS_REAL_METHODS);

ReactServlet servlet = new ReactServlet();
servlet.setLogservice(logservice);
servlet.setLogService(logservice);

servlet.service(request, response);

Expand All @@ -48,7 +48,7 @@ public void testDoGetAddTrailingSlash() throws Exception {
MockHttpServletResponse response = mock(MockHttpServletResponse.class, CALLS_REAL_METHODS);

ReactServlet servlet = new ReactServlet();
servlet.setLogservice(logservice);
servlet.setLogService(logservice);

servlet.service(request, response);

Expand All @@ -69,7 +69,7 @@ public void testDoGetResponseThrowsIOException() throws Exception {
when(response.getOutputStream()).thenReturn(streamThrowingIOException);

ReactServlet servlet = new ReactServlet();
servlet.setLogservice(logservice);
servlet.setLogService(logservice);

servlet.service(request, response);

Expand All @@ -89,7 +89,7 @@ public void testDoGetResponseStreamMethodThrowsIOException() throws Exception {
when(response.getOutputStream()).thenThrow(IOException.class);

ReactServlet servlet = new ReactServlet();
servlet.setLogservice(logservice);
servlet.setLogService(logservice);

servlet.service(request, response);

Expand All @@ -107,7 +107,7 @@ public void testDoGetResourceNotFound() throws Exception {
MockHttpServletResponse response = mock(MockHttpServletResponse.class, CALLS_REAL_METHODS);

ReactServlet servlet = new ReactServlet();
servlet.setLogservice(logservice);
servlet.setLogService(logservice);

servlet.service(request, response);

Expand Down

0 comments on commit e0027f2

Please sign in to comment.