File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
play-scala/dependency-injection/test/guice/service Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,10 @@ class ServiceWithRemoteCallUnitTest
20
20
.overrides(new MockApiModule , new ServiceModule )
21
21
.build()
22
22
new App (application) {
23
- val srv = app.injector.instanceOf[ServiceWithRemoteCall ]
24
- assert(srv.call() == " Mock remote api call" )
23
+ override def running () = {
24
+ val srv = app.injector.instanceOf[ServiceWithRemoteCall ]
25
+ assert(srv.call() == " Mock remote api call" )
26
+ }
25
27
}
26
28
}
27
29
@@ -30,8 +32,10 @@ class ServiceWithRemoteCallUnitTest
30
32
.overrides(new ApiModule , new ServiceModule )
31
33
.build()
32
34
new App (application) {
33
- val srv = app.injector.instanceOf[ServiceWithRemoteCall ]
34
- assert(srv.call() == " Real remote api call" )
35
+ override def running () = {
36
+ val srv = app.injector.instanceOf[ServiceWithRemoteCall ]
37
+ assert(srv.call() == " Real remote api call" )
38
+ }
35
39
}
36
40
}
37
41
You can’t perform that action at this time.
0 commit comments