Skip to content

Commit

Permalink
Improve wording of error message
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Apr 5, 2020
1 parent 15447ba commit 78c989f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ static void checkSupported() {
}
catch (NoClassDefFoundError e) {
throw new JUnitException(
"Invalid classpath/module path: junit-vintage-engine is present but junit:junit is not. "
+ "Please remove the former, add the latter, or use an excludeEngines(\"" + ENGINE_ID
+ "\") filter.");
"Invalid class/module path: junit-vintage-engine is present but junit:junit is not. "
+ "Please either remove junit-vintage-engine or add junit:junit, or "
+ "alternatively use an excludeEngines(\"" + ENGINE_ID + "\") filter.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ void handlesErrorsParsingVersion() {
void handlesMissingJUnit() {
JUnitException exception = assertThrows(JUnitException.class, JUnit4VersionCheck::checkSupported);

assertEquals(
"Invalid classpath/module path: junit-vintage-engine is present but junit:junit is not. "
+ "Please remove the former, add the latter, or use an excludeEngines(\"junit-vintage\") filter.",
assertEquals("Invalid class/module path: junit-vintage-engine is present but junit:junit is not. "
+ "Please either remove junit-vintage-engine or add junit:junit, or alternatively use "
+ "an excludeEngines(\"junit-vintage\") filter.",
exception.getMessage());
}
}

0 comments on commit 78c989f

Please sign in to comment.