Skip to content

Commit

Permalink
Declare nested test classes as non-static (#4894)
Browse files Browse the repository at this point in the history
The @nested annotation cannot be used on static classes.
  • Loading branch information
schalkms committed Jun 1, 2022
1 parent 5c41ebb commit 4cc4051
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -8,7 +8,7 @@ import org.junit.jupiter.api.Test
class FullQualifiedNameGuesserSpec {

@Nested
class `With package` {
inner class `With package` {
private val sut = FullQualifiedNameGuesser(
compileContentForTest(
"""
Expand Down Expand Up @@ -75,7 +75,7 @@ class FullQualifiedNameGuesserSpec {
}

@Nested
class `Without package` {
inner class `Without package` {
private val sut = FullQualifiedNameGuesser(compileContentForTest("import kotlin.jvm.JvmField"))

@Test
Expand Down

0 comments on commit 4cc4051

Please sign in to comment.