1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.jute.system;
17
18 import static com.google.inject.Guice.createInjector;
19
20 import org.junit.Test;
21 import org.kuali.common.jute.base.BaseUnitTest;
22 import org.kuali.common.jute.json.JsonService;
23 import org.kuali.common.jute.json.jackson.JacksonJsonService;
24 import org.kuali.common.jute.json.jackson.ObjectMapperProvider;
25
26 import com.fasterxml.jackson.databind.ObjectMapper;
27 import com.google.inject.Injector;
28
29 public class SystemModuleTest extends BaseUnitTest {
30
31 @Test
32 public void test() {
33 Injector injector = createInjector(new SystemModule());
34 VirtualSystem vs = injector.getInstance(VirtualSystem.class);
35
36 ObjectMapper mapper = ObjectMapperProvider.build().get();
37 JsonService json = new JacksonJsonService(mapper);
38
39 show(json, vs);
40 }
41
42 }