-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove public modifiers from JUnit 5 tests
- Loading branch information
1 parent
211d4b9
commit a013746
Showing
2 changed files
with
33 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
/** | ||
* @author Karl Heinz Marbaise <a href="mailto:[email protected]">[email protected]</a> | ||
*/ | ||
public class VersionInformationTest { | ||
class VersionInformationTest { | ||
// @formatter:off | ||
private static Object[][] createVersions() { | ||
return new Object[][] { | ||
|
@@ -71,7 +71,7 @@ private static Object[][] createVersions() { | |
|
||
@ParameterizedTest | ||
@MethodSource("createVersions") | ||
public void checkVersions(String version, int major, int minor, int patch, long buildNumber, String qualifier) { | ||
void checkVersions(String version, int major, int minor, int patch, long buildNumber, String qualifier) { | ||
VersionInformation vi = new VersionInformation(version); | ||
assertEquals(vi.getMajor(), major); | ||
assertEquals(vi.getMinor(), minor); | ||
|
@@ -81,7 +81,7 @@ public void checkVersions(String version, int major, int minor, int patch, long | |
} | ||
|
||
@Test | ||
public void shouldFaileWithNumberFormatException() { | ||
void shouldFaileWithNumberFormatException() { | ||
assertThrows(NumberFormatException.class, () -> new VersionInformation("999999999999.12345678.12.beta_5")); | ||
} | ||
} |