Skip to content

Commit 1431f98

Browse files
committed
JUnit5 allow private classes
1 parent 1c2a291 commit 1431f98

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/handlers/ErrorHandlerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import reactor.core.publisher.Mono
1818

1919
@UnitTest
2020
@DisplayName("ErrorHandler Unit Tests")
21-
internal class ErrorHandlerTest : BasicIntegrationTest() {
21+
private class ErrorHandlerTest : BasicIntegrationTest() {
2222

2323
companion object {
2424
const val NOT_FOUND = "not found"

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/handlers/ThrowableTranslatorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import kotlin.reflect.full.primaryConstructor
1414

1515
@UnitTest
1616
@DisplayName("ThrowableTranslator Unit Tests")
17-
internal class ThrowableTranslatorTest : BasicIntegrationTest() {
17+
private class ThrowableTranslatorTest : BasicIntegrationTest() {
1818

1919
private inline fun <reified T : Throwable> createException(cause: Throwable? = null) =
2020
T::class.primaryConstructor?.call("", cause)!!

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/routers/MainRouterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import reactor.core.publisher.toMono
2020

2121
@IntegrationTest
2222
@DisplayName("MainRouter Integration Tests")
23-
internal class MainRouterTest : BasicIntegrationTest() {
23+
private class MainRouterTest : BasicIntegrationTest() {
2424

2525
companion object {
2626
const val GOOGLE_ADDRESS = "1600 Amphitheatre Parkway, Mountain View, CA"

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/routers/StaticRouterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired
1313

1414
@IntegrationTest
1515
@DisplayName("StaticRouter Integration Tests")
16-
internal class StaticRouterTest : BasicIntegrationTest() {
16+
private class StaticRouterTest : BasicIntegrationTest() {
1717

1818
companion object {
1919
private val STATIC_PATH = "/index.html"

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/services/GeoLocationServiceImplTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import reactor.core.publisher.toMono
1919

2020
@UnitTest
2121
@DisplayName("GeoLocationServiceImpl Unit Tests")
22-
internal class GeoLocationServiceImplTest {
22+
private class GeoLocationServiceImplTest {
2323

2424
private companion object {
2525
const val GOOGLE_ADDRESS = "1600 Amphitheatre Parkway, Mountain View, CA"

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/services/SunriseSunsetServiceImplTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import reactor.core.publisher.toMono
1919

2020
@UnitTest
2121
@DisplayName("SunriseSunsetServiceImplUnit Tests")
22-
internal class SunriseSunsetServiceImplTest {
22+
private class SunriseSunsetServiceImplTest {
2323

2424
private companion object {
2525
const val STATUS_OK = "OK"

0 commit comments

Comments
 (0)