test_class.declarator: listener
test_class.original_string: JerseySpringIntegrationContextListener listener;
test_class.type: JerseySpringIntegrationContextListener
test_class.var_name: listener
test_class.declarator: serverData
test_class.original_string: ServerData serverData;
test_class.type: ServerData
test_class.var_name: serverData
test_class.file: micro-jersey/src/test/java/com/oath/micro/server/rest/jersey/JerseySpringIntegrationContextListenerTest.java
test_class.identifier: JerseySpringIntegrationContextListenerTest
test_case.body: @Test
  	public void testContextInitialized() {
  		listener.contextInitialized(null);
  		
  		assertThat(JerseyRestApplication.getResourcesMap().get(serverData.getModule().getContext())
  				, equalTo(Arrays.asList()));
  		assertThat(JerseyRestApplication.getPackages().get(serverData.getModule().getContext()),is( serverData.getModule().getDefaultJaxRsPackages()));
  		assertThat(JerseyRestApplication.getResourcesClasses().get(serverData.getModule().getContext()), 
  				is(serverData.getModule().getDefaultResources()));
  	}
test_case.class_method_signature: JerseySpringIntegrationContextListenerTest.testContextInitialized()
test_case.full_signature: @Test public void testContextInitialized()
test_case.identifier: testContextInitialized
test_case.invocations: contextInitialized assertThat get getResourcesMap getContext getModule equalTo asList assertThat get getPackages getContext getModule is getDefaultJaxRsPackages getModule assertThat get getResourcesClasses getContext getModule is getDefaultResources getModule
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testContextInitialized()
focal_class.declarator: serverData
focal_class.modifier: private final
focal_class.original_string: private final ServerData serverData;
focal_class.type: ServerData
focal_class.var_name: serverData
focal_class.file: micro-jersey/src/main/java/com/oath/micro/server/rest/jersey/JerseySpringIntegrationContextListener.java
focal_class.identifier: JerseySpringIntegrationContextListener
focal_class.interfaces: implements ServletContextListener
focal_class.class_method_signature: JerseySpringIntegrationContextListener.JerseySpringIntegrationContextListener(ServerData serverData)
focal_class.full_signature: public  JerseySpringIntegrationContextListener(ServerData serverData)
focal_class.identifier: JerseySpringIntegrationContextListener
focal_class.modifiers: public
focal_class.parameters: (ServerData serverData)
focal_class.signature:  JerseySpringIntegrationContextListener(ServerData serverData)
focal_class.class_method_signature: JerseySpringIntegrationContextListener.contextDestroyed(ServletContextEvent arg0)
focal_class.full_signature: @Override public void contextDestroyed(ServletContextEvent arg0)
focal_class.identifier: contextDestroyed
focal_class.modifiers: @Override public
focal_class.parameters: (ServletContextEvent arg0)
focal_class.return: void
focal_class.signature: void contextDestroyed(ServletContextEvent arg0)
focal_class.class_method_signature: JerseySpringIntegrationContextListener.contextInitialized(ServletContextEvent arg0)
focal_class.full_signature: @Override public void contextInitialized(ServletContextEvent arg0)
focal_class.identifier: contextInitialized
focal_class.modifiers: @Override public
focal_class.parameters: (ServletContextEvent arg0)
focal_class.return: void
focal_class.signature: void contextInitialized(ServletContextEvent arg0)
focal_method.body: @Override
  	public void contextInitialized(ServletContextEvent arg0) {
  		JerseyRestApplication.getResourcesMap().put(serverData.getModule().getContext(), ListX.fromIterable(serverData.getResources()));
  		JerseyRestApplication.getPackages().put(serverData.getModule().getContext(), serverData.getModule().getDefaultJaxRsPackages());
  		JerseyRestApplication.getResourcesClasses().put(serverData.getModule().getContext(), serverData.getModule().getDefaultResources());
  		JerseyRestApplication.getResourceConfigManager().put(serverData.getModule().getContext(), serverData.getModule().getResourceConfigManager());
  		JerseyRestApplication.getServerPropertyMap().put(serverData.getModule().getContext(), serverData.getModule().getServerProperties());
  	}
focal_method.class_method_signature: JerseySpringIntegrationContextListener.contextInitialized(ServletContextEvent arg0)
focal_method.full_signature: @Override public void contextInitialized(ServletContextEvent arg0)
focal_method.identifier: contextInitialized
focal_method.invocations: put getResourcesMap getContext getModule fromIterable getResources put getPackages getContext getModule getDefaultJaxRsPackages getModule put getResourcesClasses getContext getModule getDefaultResources getModule put getResourceConfigManager getContext getModule getResourceConfigManager getModule put getServerPropertyMap getContext getModule getServerProperties getModule
focal_method.modifiers: @Override public
focal_method.parameters: (ServletContextEvent arg0)
focal_method.return: void
focal_method.signature: void contextInitialized(ServletContextEvent arg0)