@Test public void addInterceptors() { InterceptorRegistry interceptorRegistryMock = mock(InterceptorRegistry.class); InterceptorRegistration interceptorRegistrationMock = mock(InterceptorRegistration.class); when(interceptorRegistryMock.addInterceptor(coffeeNetNavigationInterceptorMock)).thenReturn( interceptorRegistrationMock); sut.addInterceptors(interceptorRegistryMock); verify(interceptorRegistryMock).addInterceptor(coffeeNetNavigationInterceptorMock); verify(interceptorRegistrationMock).addPathPatterns("/**"); }
@Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(coffeeNetNavigationInterceptor).addPathPatterns("/**"); LOGGER.info(" }
CoffeeNetWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(coffeeNetNavigationInterceptor).addPathPatterns("/**"); LOGGER.info(" } }
CoffeeNetWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(coffeeNetNavigationInterceptor).addPathPatterns("/**"); LOGGER.info(" } CoffeeNetWebMvcConfigurerAdapter(CoffeeNetNavigationInterceptor coffeeNetNavigationInterceptor); }
CoffeeNetWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(coffeeNetNavigationInterceptor).addPathPatterns("/**"); LOGGER.info(" } CoffeeNetWebMvcConfigurerAdapter(CoffeeNetNavigationInterceptor coffeeNetNavigationInterceptor); @Override void addInterceptors(InterceptorRegistry registry); }
CoffeeNetWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter { @Override public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(coffeeNetNavigationInterceptor).addPathPatterns("/**"); LOGGER.info(" } CoffeeNetWebMvcConfigurerAdapter(CoffeeNetNavigationInterceptor coffeeNetNavigationInterceptor); @Override void addInterceptors(InterceptorRegistry registry);  }