Skip to content

Commit ea9f851

Browse files
committed
Merge pull request #27736 from izeye
* gh-27736: Polish "Polish access modifiers for test classes" Polish access modifiers for test classes Closes gh-27736
2 parents 2baee89 + ffbd28b commit ea9f851

File tree

61 files changed

+193
-121
lines changed

Some content is hidden

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

61 files changed

+193
-121
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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/context/properties/CompoundConfigurationTableEntryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
2525
*
2626
* @author Brian Clozel
2727
*/
28-
public class CompoundConfigurationTableEntryTests {
28+
class CompoundConfigurationTableEntryTests {
2929

3030
private static final String NEWLINE = System.lineSeparator();
3131

buildSrc/src/test/java/org/springframework/boot/build/context/properties/ConfigurationTableTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
2525
*
2626
* @author Brian Clozel
2727
*/
28-
public class ConfigurationTableTests {
28+
class ConfigurationTableTests {
2929

3030
private static final String NEWLINE = System.lineSeparator();
3131

buildSrc/src/test/java/org/springframework/boot/build/context/properties/SingleConfigurationTableEntryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
2525
*
2626
* @author Brian Clozel
2727
*/
28-
public class SingleConfigurationTableEntryTests {
28+
class SingleConfigurationTableEntryTests {
2929

3030
private static final String NEWLINE = System.lineSeparator();
3131

0 commit comments

Comments
 (0)