Skip to content

Commit

Permalink
fix: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Anisimov committed Nov 26, 2020
1 parent c838502 commit e1e8893
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ public void init() {
.thenReturn(resourceProvider);
Mockito.when(context.getAttribute(Lookup.class.getName()))
.thenReturn(lookup);
getServlet().init(config);
if ( getServlet().getServletConfig() ==null) {
getServlet().init(config);
}

super.init();
} catch (ServiceException | ServletException e) {
throw new RuntimeException(e);
Expand Down

0 comments on commit e1e8893

Please sign in to comment.