@@ -29,31 +29,39 @@ public final class RtDockerSystemTestCase {
29
29
@ Test
30
30
public void returnsDiskSpaceUsage () throws Exception {
31
31
long totalSpace = new RtDockerSystem (
32
- new AssertRequest (
33
- new Response (
34
- HttpStatus .SC_OK ,
35
- Json .createObjectBuilder ()
36
- .add ("LayersSize" , 250 )
37
- .add ("Containers" ,
38
- Json .createArrayBuilder ()
39
- .add (Json .createObjectBuilder ()
40
- .add ("SizeRootFs" , 50 ))
41
- ).add ("Volumes" ,
32
+ new AssertRequest (
33
+ new Response (
34
+ HttpStatus .SC_OK ,
35
+ Json .createObjectBuilder ()
36
+ .add ("LayersSize" , 250 )
37
+ .add (
38
+ "Containers" ,
42
39
Json .createArrayBuilder ()
43
- .add (
44
- Json .createObjectBuilder ()
45
- .add ("UsageData" ,
46
- Json .createObjectBuilder ()
47
- .add ("Size" , 200 )))
40
+ .add (
41
+ Json .createObjectBuilder ()
42
+ .add ("SizeRootFs" , 50 )
43
+ )
44
+ )
45
+ .add (
46
+ "Volumes" ,
47
+ Json .createArrayBuilder ()
48
+ .add (
49
+ Json .createObjectBuilder ()
50
+ .add (
51
+ "UsageData" ,
52
+ Json .createObjectBuilder ()
53
+ .add ("Size" , 200 )
54
+ )
55
+ )
48
56
).build ().toString ()
49
- )
50
- ),
51
- URI .create ("http://localhost/system" ),
52
- Mockito .mock (Docker .class )
53
- ).diskUsage ().totalSpace ();
57
+ )
58
+ ),
59
+ URI .create ("http://localhost/system" ),
60
+ Mockito .mock (Docker .class )
61
+ ).diskUsage ().totalSpace ();
54
62
MatcherAssert .assertThat (
55
- totalSpace ,
56
- Matchers .is (500L )
63
+ totalSpace ,
64
+ Matchers .is (500L )
57
65
);
58
66
}
59
67
0 commit comments