Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fil512 committed Mar 29, 2019
1 parent b1d41a8 commit 60cf426
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -201,8 +201,10 @@ public void before() {
@ComponentScan(basePackages = "ca.uhn.fhir.jpa.model")
static class InterceptorRegistryTestCtxConfig {

@Autowired
private IInterceptorRegistry myInterceptorRegistry;
@Bean
public InterceptorService interceptorService() {
return new InterceptorService("test");
}

/**
* Note: Orders are deliberately reversed to make sure we get the orders right
Expand All @@ -211,7 +213,7 @@ static class InterceptorRegistryTestCtxConfig {
@Bean
public MyTestInterceptorTwo interceptor1() {
MyTestInterceptorTwo retVal = new MyTestInterceptorTwo();
myInterceptorRegistry.registerInterceptor(retVal);
interceptorService().registerInterceptor(retVal);
return retVal;
}

Expand All @@ -222,7 +224,7 @@ public MyTestInterceptorTwo interceptor1() {
@Bean
public MyTestInterceptorOne interceptor2() {
MyTestInterceptorOne retVal = new MyTestInterceptorOne();
myInterceptorRegistry.registerInterceptor(retVal);
interceptorService().registerInterceptor(retVal);
return retVal;
}

Expand Down

0 comments on commit 60cf426

Please sign in to comment.