Skip to content

Commit 8a425de

Browse files
izeyewilkinsona
authored andcommitted
Polish access modifiers for test classes
See gh-27736
1 parent 2baee89 commit 8a425de

File tree

42 files changed

+45
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+45
-46
lines changed

buildSrc/src/test/java/org/springframework/boot/build/artifactory/ArtifactoryRepositoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*
2828
* @author Andy Wilkinson
2929
*/
30-
public class ArtifactoryRepositoryTests {
30+
class ArtifactoryRepositoryTests {
3131

3232
@Test
3333
void whenProjectVersionIsMilestoneThenRepositoryIsMilestone() {

buildSrc/src/test/java/org/springframework/boot/build/bom/BomPluginIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
*
3939
* @author Andy Wilkinson
4040
*/
41-
public class BomPluginIntegrationTests {
41+
class BomPluginIntegrationTests {
4242

4343
private File projectDir;
4444

4545
private File buildFile;
4646

4747
@BeforeEach
48-
public void setup(@TempDir File projectDir) throws IOException {
48+
void setup(@TempDir File projectDir) throws IOException {
4949
this.projectDir = projectDir;
5050
this.buildFile = new File(this.projectDir, "build.gradle");
5151
}

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/ArtifactVersionDependencyVersionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Andy Wilkinson
2727
*/
28-
public class ArtifactVersionDependencyVersionTests {
28+
class ArtifactVersionDependencyVersionTests {
2929

3030
@Test
3131
void parseWhenVersionIsNotAMavenVersionShouldReturnNull() {

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/CalendarVersionDependencyVersionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Andy Wilkinson
2727
*/
28-
public class CalendarVersionDependencyVersionTests {
28+
class CalendarVersionDependencyVersionTests {
2929

3030
@Test
3131
void parseWhenVersionIsNotACalendarVersionShouldReturnNull() {

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Andy Wilkinson
2727
*/
28-
public class DependencyVersionTests {
28+
class DependencyVersionTests {
2929

3030
@Test
3131
void parseWhenValidMavenVersionShouldReturnArtifactVersionDependencyVersion() {

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/NumericQualifierDependencyVersionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Andy Wilkinson
2727
*/
28-
public class NumericQualifierDependencyVersionTests {
28+
class NumericQualifierDependencyVersionTests {
2929

3030
@Test
3131
void isNewerThanOnVersionWithNumericQualifierWhenInputHasNoQualifierShouldReturnTrue() {

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/ReleaseTrainDependencyVersionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* @author Andy Wilkinson
2727
*/
28-
public class ReleaseTrainDependencyVersionTests {
28+
class ReleaseTrainDependencyVersionTests {
2929

3030
@Test
3131
void parsingOfANonReleaseTrainVersionReturnsNull() {

buildSrc/src/test/java/org/springframework/boot/build/log4j2/ReproduciblePluginsDatActionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
* @author Andy Wilkinson
3939
*/
40-
public class ReproduciblePluginsDatActionTests {
40+
class ReproduciblePluginsDatActionTests {
4141

4242
@Test
4343
void postProcessingOrdersCategoriesAndPlugins() throws IOException {

buildSrc/src/test/java/org/springframework/boot/build/mavenplugin/PluginXmlParserTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @author Andy Wilkinson
3434
* @author Mike Smithson
3535
*/
36-
public class PluginXmlParserTests {
36+
class PluginXmlParserTests {
3737

3838
private final PluginXmlParser parser = new PluginXmlParser();
3939

buildSrc/src/test/java/org/springframework/boot/build/optional/OptionalDependenciesPluginIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
*
3535
* @author Andy Wilkinson
3636
*/
37-
public class OptionalDependenciesPluginIntegrationTests {
37+
class OptionalDependenciesPluginIntegrationTests {
3838

3939
private File projectDir;
4040

4141
private File buildFile;
4242

4343
@BeforeEach
44-
public void setup(@TempDir File projectDir) throws IOException {
44+
void setup(@TempDir File projectDir) throws IOException {
4545
this.projectDir = projectDir;
4646
this.buildFile = new File(this.projectDir, "build.gradle");
4747
}
@@ -80,7 +80,7 @@ void optionalDependenciesAreAddedToTestSourceSetsRuntimeClasspath() throws IOExc
8080
optionalDependenciesAreAddedToSourceSetClasspath("test", "runtimeClasspath");
8181
}
8282

83-
public void optionalDependenciesAreAddedToSourceSetClasspath(String sourceSet, String classpath)
83+
private void optionalDependenciesAreAddedToSourceSetClasspath(String sourceSet, String classpath)
8484
throws IOException {
8585
try (PrintWriter out = new PrintWriter(new FileWriter(this.buildFile))) {
8686
out.println("plugins {");

0 commit comments

Comments
 (0)