test_class.file: herd-code/herd-app/src/test/java/org/finra/herd/app/WarInitializerTest.java
test_class.identifier: WarInitializerTest
test_case.body: @Test
      public void testOnStartup() throws Exception
      {
          WarInitializer warInitializer = new WarInitializer();
  
          // Create a mock servlet context.
          ServletContext servletContext = new ExtendedMockServletContext();
  
          // Call the various init methods of the WAR initializer to make sure they don't throw exceptions.
          // Since everything is mocked that the WAR initializer modifies, there's no real way to validate it so we'll consider the methods not throwing
          // an exception a successful test case.
  
          // Note that we are NOT calling the initContextLoaderListener method because the application JUnits will set the application context for us.
          // If we re-initialize it here, other JUnits could fail.
          warInitializer.initDispatchServlet(servletContext);
          warInitializer.initDelegatingFilterProxy(servletContext);
          warInitializer.initLog4JMdcLoggingFilter(servletContext);
          warInitializer.initCharacterEncodingFilter(servletContext);
          warInitializer.initRequestLoggingFilter(servletContext);
          warInitializer.initServletMapping(servletContext);
      }
test_case.class_method_signature: WarInitializerTest.testOnStartup()
test_case.full_signature: @Test public void testOnStartup()
test_case.identifier: testOnStartup
test_case.invocations: initDispatchServlet initDelegatingFilterProxy initLog4JMdcLoggingFilter initCharacterEncodingFilter initRequestLoggingFilter initServletMapping
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOnStartup()
focal_class.file: herd-code/herd-app/src/main/java/org/finra/herd/app/WarInitializer.java
focal_class.identifier: WarInitializer
focal_class.interfaces: implements WebApplicationInitializer
focal_class.class_method_signature: WarInitializer.onStartup(ServletContext servletContext)
focal_class.full_signature: @Override public void onStartup(ServletContext servletContext)
focal_class.identifier: onStartup
focal_class.modifiers: @Override public
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void onStartup(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initContextLoaderListener(ServletContext servletContext)
focal_class.full_signature: protected void initContextLoaderListener(ServletContext servletContext)
focal_class.identifier: initContextLoaderListener
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initContextLoaderListener(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initDispatchServlet(ServletContext servletContext)
focal_class.full_signature: protected void initDispatchServlet(ServletContext servletContext)
focal_class.identifier: initDispatchServlet
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initDispatchServlet(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initDelegatingFilterProxy(ServletContext servletContext)
focal_class.full_signature: protected void initDelegatingFilterProxy(ServletContext servletContext)
focal_class.identifier: initDelegatingFilterProxy
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initDelegatingFilterProxy(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initLog4JMdcLoggingFilter(ServletContext servletContext)
focal_class.full_signature: protected void initLog4JMdcLoggingFilter(ServletContext servletContext)
focal_class.identifier: initLog4JMdcLoggingFilter
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initLog4JMdcLoggingFilter(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initCharacterEncodingFilter(ServletContext servletContext)
focal_class.full_signature: protected void initCharacterEncodingFilter(ServletContext servletContext)
focal_class.identifier: initCharacterEncodingFilter
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initCharacterEncodingFilter(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initRequestLoggingFilter(ServletContext servletContext)
focal_class.full_signature: protected void initRequestLoggingFilter(ServletContext servletContext)
focal_class.identifier: initRequestLoggingFilter
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initRequestLoggingFilter(ServletContext servletContext)
focal_class.class_method_signature: WarInitializer.initServletMapping(ServletContext servletContext)
focal_class.full_signature: protected void initServletMapping(ServletContext servletContext)
focal_class.identifier: initServletMapping
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext)
focal_class.return: void
focal_class.signature: void initServletMapping(ServletContext servletContext)
focal_method.body: @Override
      public void onStartup(ServletContext servletContext) throws ServletException
      {
          // Initialize all the parts individually so an extending class can override individual methods as needed.
          initContextLoaderListener(servletContext);
          initDispatchServlet(servletContext);
          initDelegatingFilterProxy(servletContext);
          initLog4JMdcLoggingFilter(servletContext);
          initCharacterEncodingFilter(servletContext);
          initRequestLoggingFilter(servletContext);
          initServletMapping(servletContext);
      }
focal_method.class_method_signature: WarInitializer.onStartup(ServletContext servletContext)
focal_method.full_signature: @Override public void onStartup(ServletContext servletContext)
focal_method.identifier: onStartup
focal_method.invocations: initContextLoaderListener initDispatchServlet initDelegatingFilterProxy initLog4JMdcLoggingFilter initCharacterEncodingFilter initRequestLoggingFilter initServletMapping
focal_method.modifiers: @Override public
focal_method.parameters: (ServletContext servletContext)
focal_method.return: void
focal_method.signature: void onStartup(ServletContext servletContext)