1 package org.apache.maven.surefire.suite;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 public class RunResult
28 {
29 private final int completedCount;
30
31 private final int errors;
32
33 private final int failures;
34
35 private final int skipped;
36
37 private static final int SUCCESS = 0;
38
39 public static final int FAILURE = 255;
40
41 public RunResult( int completedCount, int errors, int failures, int skipped )
42 {
43 this.completedCount = completedCount;
44 this.errors = errors;
45 this.failures = failures;
46 this.skipped = skipped;
47 }
48
49 public int getCompletedCount()
50 {
51 return completedCount;
52 }
53
54 public int getErrors()
55 {
56 return errors;
57 }
58
59 public int getFailures()
60 {
61 return failures;
62 }
63
64 public int getSkipped()
65 {
66 return skipped;
67 }
68
69 public int getBooterCode()
70 {
71 return getFailures() == 0 && getErrors() == 0 ? SUCCESS : FAILURE;
72 }
73
74 }