Search in sources :

Example 1 with CseApplicationListener

use of org.apache.servicecomb.core.CseApplicationListener in project incubator-servicecomb-java-chassis by apache.

the class RawSpringMvcSimplifiedMappingAnnotationIntegrationTest method shutdown.

@AfterClass
public static void shutdown() throws Exception {
    CseApplicationListener cal = BeanUtils.getBean("org.apache.servicecomb.core.CseApplicationListener");
    ContextClosedEvent event = new ContextClosedEvent(BeanUtils.getContext());
    cal.onApplicationEvent(event);
}
Also used : CseApplicationListener(org.apache.servicecomb.core.CseApplicationListener) ContextClosedEvent(org.springframework.context.event.ContextClosedEvent) AfterClass(org.junit.AfterClass)

Example 2 with CseApplicationListener

use of org.apache.servicecomb.core.CseApplicationListener in project incubator-servicecomb-java-chassis by apache.

the class RawSpringMvcIntegrationTest method shutdown.

@AfterClass
public static void shutdown() throws Exception {
    CseApplicationListener cal = BeanUtils.getBean("org.apache.servicecomb.core.CseApplicationListener");
    ContextClosedEvent event = new ContextClosedEvent(BeanUtils.getContext());
    cal.onApplicationEvent(event);
}
Also used : CseApplicationListener(org.apache.servicecomb.core.CseApplicationListener) ContextClosedEvent(org.springframework.context.event.ContextClosedEvent) AfterClass(org.junit.AfterClass)

Aggregations

CseApplicationListener (org.apache.servicecomb.core.CseApplicationListener)2 AfterClass (org.junit.AfterClass)2 ContextClosedEvent (org.springframework.context.event.ContextClosedEvent)2