@@ -17,11 +17,13 @@ class ArrivalDecoratorServiceUnitTest extends MixedPlaySpec {
17
17
)
18
18
.build()
19
19
) {
20
- private val testee = app.injector.instanceOf[ArrivalDecoratorService ]
21
- private val arrival = Arrival (1L , " Athens" , " Heathrow" , " 12345" )
22
- assert(testee.decorate(arrival).short)
23
- assert(! testee.decorate(arrival).medium)
24
- assert(! testee.decorate(arrival).long)
20
+ override def running () = {
21
+ val testee = app.injector.instanceOf[ArrivalDecoratorService ]
22
+ val arrival = Arrival (1L , " Athens" , " Heathrow" , " 12345" )
23
+ assert(testee.decorate(arrival).short)
24
+ assert(! testee.decorate(arrival).medium)
25
+ assert(! testee.decorate(arrival).long)
26
+ }
25
27
}
26
28
27
29
" mark as medium an arrival with plane name length = 5 with overridden configuration" in new App (
@@ -37,11 +39,13 @@ class ArrivalDecoratorServiceUnitTest extends MixedPlaySpec {
37
39
)
38
40
.build()
39
41
) {
40
- private val testee = app.injector.instanceOf[ArrivalDecoratorService ]
41
- private val arrival = Arrival (1L , " Athens" , " Heathrow" , " 12345" )
42
- assert(! testee.decorate(arrival).short)
43
- assert(testee.decorate(arrival).medium)
44
- assert(! testee.decorate(arrival).long)
42
+ override def running () = {
43
+ val testee = app.injector.instanceOf[ArrivalDecoratorService ]
44
+ val arrival = Arrival (1L , " Athens" , " Heathrow" , " 12345" )
45
+ assert(! testee.decorate(arrival).short)
46
+ assert(testee.decorate(arrival).medium)
47
+ assert(! testee.decorate(arrival).long)
48
+ }
45
49
}
46
50
}
47
51
0 commit comments