Skip to content

Commit f144b13

Browse files
authored
[SUREFIRE-2278] Don't say please. (#792)
1 parent 68b0528 commit f144b13

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/SurefireHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ private static String createErrorMessage(
270270
.append(reportParameters.getFailOnFlakeCount())
271271
.append(".");
272272
}
273-
msg.append("\n\nPlease refer to ")
273+
msg.append("\n\nSee ")
274274
.append(reportParameters.getReportsDirectory())
275275
.append(" for the individual test results.")
276276
.append('\n')
277-
.append("Please refer to dump files (if any exist) ")
277+
.append("See dump files (if any exist) ")
278278
.append(DUMP_FILES_PRINT[0])
279279
.append(", ")
280280
.append(DUMP_FILES_PRINT[1])

maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/SurefireHelperTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ public void shouldHandleFailIfNoTests() throws Exception {
163163
public void shouldHandleTestFailure() throws Exception {
164164
RunResult summary = new RunResult(1, 0, 1, 0);
165165
e.expect(MojoFailureException.class);
166-
e.expectMessage("There are test failures.\n\nPlease refer to null "
167-
+ "for the individual test results.\nPlease refer to dump files (if any exist) "
166+
e.expectMessage("There are test failures.\n\nSee null "
167+
+ "for the individual test results.\nSee dump files (if any exist) "
168168
+ "[date].dump, [date]-jvmRun[N].dump and [date].dumpstream.");
169169
reportExecution(new Mojo(), summary, null, null);
170170
}
@@ -175,8 +175,8 @@ public void failsIfThereAreTooManyFlakes() throws Exception {
175175
Mojo reportParameters = new Mojo();
176176
reportParameters.setFailOnFlakeCount(1);
177177
e.expect(MojoFailureException.class);
178-
e.expectMessage("There is 1 flake and failOnFlakeCount is set to 1.\n\nPlease refer to null "
179-
+ "for the individual test results.\nPlease refer to dump files (if any exist) "
178+
e.expectMessage("There is 1 flake and failOnFlakeCount is set to 1.\n\nSee null "
179+
+ "for the individual test results.\nSee dump files (if any exist) "
180180
+ "[date].dump, [date]-jvmRun[N].dump and [date].dumpstream.");
181181
reportExecution(reportParameters, summary, null, null);
182182
}
@@ -188,8 +188,8 @@ public void reportsFailuresAndFlakes() throws Exception {
188188
reportParameters.setFailOnFlakeCount(1);
189189
e.expect(MojoFailureException.class);
190190
e.expectMessage("There are test failures.\nThere are 2 flakes and failOnFlakeCount is set to 1."
191-
+ "\n\nPlease refer to null "
192-
+ "for the individual test results.\nPlease refer to dump files (if any exist) "
191+
+ "\n\nSee null "
192+
+ "for the individual test results.\nSee dump files (if any exist) "
193193
+ "[date].dump, [date]-jvmRun[N].dump and [date].dumpstream.");
194194
reportExecution(reportParameters, summary, null, null);
195195
}

maven-surefire-plugin/src/test/java/org/apache/maven/plugin/surefire/SurefireMojoTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ public void testTestFailure() throws Exception {
6767
mojo.handleSummary(runResult, null);
6868
} catch (MojoFailureException e) {
6969
assertThat(e.getLocalizedMessage())
70-
.isEqualTo("There are test failures.\n\nPlease refer to null "
71-
+ "for the individual test results.\nPlease refer to dump files (if any exist) "
70+
.isEqualTo("There are test failures.\n\nSee null "
71+
+ "for the individual test results.\nSee dump files (if any exist) "
7272
+ "[date].dump, [date]-jvmRun[N].dump and [date].dumpstream.");
7373
return;
7474
}
7575
fail("Expected MojoFailureException with message "
76-
+ "'There are test failures.\n\nPlease refer to null "
77-
+ "for the individual test results.\nPlease refer to dump files (if any exist) "
76+
+ "'There are test failures.\n\nSee null "
77+
+ "for the individual test results.\nSee dump files (if any exist) "
7878
+ "[date].dump, [date]-jvmRun[N].dump and [date].dumpstream.'");
7979
}
8080

surefire-api/src/main/java/org/apache/maven/surefire/api/util/RunOrder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private static String createMessageForMissingRunOrder(String name) {
8181
RunOrder[] runOrders = values();
8282
StringBuilder message = new StringBuilder("There's no RunOrder with the name ");
8383
message.append(name);
84-
message.append(". Please use one of the following RunOrders: ");
84+
message.append(". Use one of the following RunOrders: ");
8585
for (int i = 0; i < runOrders.length; i++) {
8686
if (i != 0) {
8787
message.append(", ");

surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/AsynchronousRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
/**
3232
* Since SUREFIRE 2.18 this class is deprecated.
33-
* Please use {@link org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilder} instead.
33+
* Use {@link org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilder} instead.
3434
*
3535
* @author <a href="mailto:[email protected]">Kristian Rosenvold</a>
3636
*/

surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConfigurableParallelComputer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
/**
3939
* Since SUREFIRE 2.18 this class is deprecated.
40-
* Please use {@link org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilder} instead.
40+
* Use {@link org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilder} instead.
4141
*
4242
* @author Kristian Rosenvold
4343
*/

surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/SynchronousRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/**
2424
* Since SUREFIRE 2.18 this class is deprecated.
25-
* Please use {@link org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilder} instead.
25+
* Use {@link org.apache.maven.surefire.junitcore.pc.ParallelComputerBuilder} instead.
2626
*
2727
* @author <a href="mailto:[email protected]">Kristian Rosenvold</a>
2828
*/

0 commit comments

Comments
 (0)