7
7
8
8
package io .vlingo .schemata .resource ;
9
9
10
+ import io .vlingo .actors .*;
10
11
import io .vlingo .http .Response ;
11
12
import io .vlingo .http .ResponseHeader ;
12
13
import io .vlingo .schemata .SchemataConfig ;
13
14
import org .junit .Before ;
14
15
15
- import io .vlingo .actors .Stage ;
16
- import io .vlingo .actors .World ;
17
16
import io .vlingo .common .identity .IdentityGeneratorType ;
18
- import io .vlingo .lattice .grid .Grid ;
19
- import io .vlingo .lattice .grid .GridAddressFactory ;
20
17
import io .vlingo .lattice .model .object .ObjectTypeRegistry ;
21
18
import io .vlingo .schemata .NoopDispatcher ;
22
19
import io .vlingo .schemata .Schemata ;
@@ -37,6 +34,7 @@ public abstract class ResourceTest {
37
34
protected ObjectStore objectStore ;
38
35
protected ObjectTypeRegistry registry ;
39
36
protected Stage stage ;
37
+ protected Grid grid ;
40
38
protected World world ;
41
39
42
40
protected OrganizationQueries organizationQueries ;
@@ -50,7 +48,8 @@ public abstract class ResourceTest {
50
48
@ SuppressWarnings ({ "unchecked" , "rawtypes" })
51
49
public void setUp () throws Exception {
52
50
world = World .startWithDefaults ("test-command-router" );
53
- world .stageNamed (Schemata .StageName , Grid .class , new GridAddressFactory (IdentityGeneratorType .RANDOM ));
51
+ // TODO: Start an actual Grid here using Grid.start(...). Needs a test grid configuration first
52
+ world .stageNamed (Schemata .StageName , Stage .class , new GridAddressFactory (IdentityGeneratorType .RANDOM ));
54
53
stage = world .stageNamed (Schemata .StageName );
55
54
56
55
final SchemataObjectStore schemataObjectStore = SchemataObjectStore .instance (SchemataConfig .forRuntime ("test" ));
0 commit comments