1 package org.apache.maven.plugins.surefire.report;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.ResourceBundle;
23
24
25
26
27
28
29 public abstract class LocalizedProperties
30 {
31 private final ResourceBundle bundle;
32
33 protected LocalizedProperties( ResourceBundle bundle )
34 {
35 this.bundle = bundle;
36 }
37
38 public abstract String getReportName();
39 public abstract String getReportDescription();
40 public abstract String getReportHeader();
41
42 protected final String toLocalizedValue( String key )
43 {
44 return bundle.getString( key );
45 }
46
47 public String getReportLabelSummary()
48 {
49 return toLocalizedValue( "report.surefire.label.summary" );
50 }
51
52 public String getReportLabelTests()
53 {
54 return toLocalizedValue( "report.surefire.label.tests" );
55 }
56
57 public String getReportLabelErrors()
58 {
59 return toLocalizedValue( "report.surefire.label.errors" );
60 }
61
62 public String getReportLabelFailures()
63 {
64 return toLocalizedValue( "report.surefire.label.failures" );
65 }
66
67 public String getReportLabelSkipped()
68 {
69 return toLocalizedValue( "report.surefire.label.skipped" );
70 }
71
72 public String getReportLabelSuccessRate()
73 {
74 return toLocalizedValue( "report.surefire.label.successrate" );
75 }
76
77 public String getReportLabelTime()
78 {
79 return toLocalizedValue( "report.surefire.label.time" );
80 }
81
82 public String getReportLabelPackageList()
83 {
84 return toLocalizedValue( "report.surefire.label.packagelist" );
85 }
86
87 public String getReportLabelPackage()
88 {
89 return toLocalizedValue( "report.surefire.label.package" );
90 }
91
92 public String getReportLabelClass()
93 {
94 return toLocalizedValue( "report.surefire.label.class" );
95 }
96
97 public String getReportLabelTestCases()
98 {
99 return toLocalizedValue( "report.surefire.label.testcases" );
100 }
101
102 public String getReportLabelFailureDetails()
103 {
104 return toLocalizedValue( "report.surefire.label.failuredetails" );
105 }
106
107 public String getReportTextNode1()
108 {
109 return toLocalizedValue( "report.surefire.text.note1" );
110 }
111
112 public String getReportTextNode2()
113 {
114 return toLocalizedValue( "report.surefire.text.note2" );
115 }
116 }