mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Declare nested test classes as non-static (#4894)
The @Nested annotation cannot be used on static classes.
This commit is contained in:
@@ -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(
|
||||
"""
|
||||
@@ -75,7 +75,7 @@ class FullQualifiedNameGuesserSpec {
|
||||
}
|
||||
|
||||
@Nested
|
||||
class `Without package` {
|
||||
inner class `Without package` {
|
||||
private val sut = FullQualifiedNameGuesser(compileContentForTest("import kotlin.jvm.JvmField"))
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user