We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda36ea commit 46c07eaCopy full SHA for 46c07ea
grails-plugin-events/src/test/groovy/grails/events/SpringEventTranslatorSpec.groovy
@@ -30,7 +30,9 @@ import spock.lang.Specification
30
class SpringEventTranslatorSpec extends Specification {
31
32
void "Test event translator translates Spring events"() {
33
- given:"A translator"
+ setup:
34
+ def env = Environment.initialize()
35
+
36
37
def eventBus = Mock(EventBus)
38
def translator = new SpringEventTranslator(eventBus: eventBus)
@@ -42,6 +44,9 @@ class SpringEventTranslatorSpec extends Specification {
42
44
43
45
then:"The event bus is notified"
46
1 * eventBus.notify("spring:contextStarted", _)
47
48
+ cleanup:
49
+ env.close()
50
}
51
52
0 commit comments