From 269d6f5983b73971f7a7a70dc409a520a8d8421c Mon Sep 17 00:00:00 2001 From: Jon Brisbin Date: Tue, 27 Nov 2012 10:43:22 -0600 Subject: [PATCH] Fix broken test that didn't have the AnnotatedHandlerBeanPostProcessor defined in it. --- .../repository/spec/ExtensionsSpec.groovy | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/spring-data-rest-repository/src/test/groovy/org/springframework/data/rest/repository/spec/ExtensionsSpec.groovy b/spring-data-rest-repository/src/test/groovy/org/springframework/data/rest/repository/spec/ExtensionsSpec.groovy index 0021277eb..539e2383b 100644 --- a/spring-data-rest-repository/src/test/groovy/org/springframework/data/rest/repository/spec/ExtensionsSpec.groovy +++ b/spring-data-rest-repository/src/test/groovy/org/springframework/data/rest/repository/spec/ExtensionsSpec.groovy @@ -5,19 +5,8 @@ import org.springframework.context.ApplicationContext import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.data.rest.repository.RepositoryExporter -import org.springframework.data.rest.repository.annotation.HandleAfterDelete -import org.springframework.data.rest.repository.annotation.HandleAfterLinkSave -import org.springframework.data.rest.repository.annotation.HandleAfterSave -import org.springframework.data.rest.repository.annotation.HandleBeforeDelete -import org.springframework.data.rest.repository.annotation.HandleBeforeLinkSave -import org.springframework.data.rest.repository.annotation.HandleBeforeSave -import org.springframework.data.rest.repository.annotation.RepositoryEventHandler -import org.springframework.data.rest.repository.context.AfterDeleteEvent -import org.springframework.data.rest.repository.context.AfterLinkSaveEvent -import org.springframework.data.rest.repository.context.AfterSaveEvent -import org.springframework.data.rest.repository.context.BeforeDeleteEvent -import org.springframework.data.rest.repository.context.BeforeLinkSaveEvent -import org.springframework.data.rest.repository.context.BeforeSaveEvent +import org.springframework.data.rest.repository.annotation.* +import org.springframework.data.rest.repository.context.* import org.springframework.data.rest.repository.test.ApplicationConfig import org.springframework.data.rest.repository.test.Person import org.springframework.test.context.ContextConfiguration @@ -64,6 +53,10 @@ class ExtensionsSpec extends Specification { @Configuration class EventsApplicationConfig { + @Bean AnnotatedHandlerBeanPostProcessor handlerBeanPostProcessor() { + return new AnnotatedHandlerBeanPostProcessor(); + } + @Bean PersonEventHandler personEventHandler() { new PersonEventHandler() }