Search in sources :

Example 1 with GetBeanInterceptor

use of org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.GetBeanInterceptor in project incubator-skywalking by apache.

the class GetBeanInterceptorTest method setUp.

@Before
public void setUp() {
    interceptor = new GetBeanInterceptor();
    when(enhanceRet.getSkyWalkingDynamicField()).thenReturn(new EnhanceRequireObjectCache());
    when(enhancedInstance.getSkyWalkingDynamicField()).thenReturn(request);
}
Also used : GetBeanInterceptor(org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.GetBeanInterceptor) EnhanceRequireObjectCache(org.apache.skywalking.apm.plugin.spring.mvc.commons.EnhanceRequireObjectCache) Before(org.junit.Before)

Aggregations

EnhanceRequireObjectCache (org.apache.skywalking.apm.plugin.spring.mvc.commons.EnhanceRequireObjectCache)1 GetBeanInterceptor (org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.GetBeanInterceptor)1 Before (org.junit.Before)1