Skip to content

Commit 9442a9f

Browse files
Use local val
1 parent 004ce94 commit 9442a9f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

entity-tests/src/test/kotlin/io/spine/tools/core/jvm/entity/ImplementEntityStateSpec.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ import org.junit.jupiter.api.io.TempDir
4444
@DisplayName("`ImplementEntityState` action should")
4545
class ImplementEntityStateSpec {
4646

47-
private lateinit var sourceFile: SourceFile<Java>
48-
4947
companion object : EntityPluginTestSetup() {
5048

5149
@BeforeAll
@@ -57,25 +55,25 @@ class ImplementEntityStateSpec {
5755

5856
@Test
5957
fun `use 'AggregateState' interface for 'AGGREGATE' kind`() {
60-
sourceFile = file("Employee".java)
58+
val sourceFile = file("Employee".java)
6159
sourceFile.code().shouldContain(AggregateState::class.java.reference)
6260
}
6361

6462
@Test
6563
fun `use 'ProjectionState' interface for 'PROJECTION' kind`() {
66-
sourceFile = file("Organization".java)
64+
val sourceFile = file("Organization".java)
6765
sourceFile.code().shouldContain(ProjectionState::class.java.reference)
6866
}
6967

7068
@Test
7169
fun `use 'ProcessManagerState' interface for 'PROCESS_MANAGER' kind`() {
72-
sourceFile = file("Transition".java)
70+
val sourceFile = file("Transition".java)
7371
sourceFile.code().shouldContain(ProcessManagerState::class.java.reference)
7472
}
7573

7674
@Test
7775
fun `use 'EntityState' interface for 'ENTITY' kind`() {
78-
sourceFile = file("Blob".java)
76+
val sourceFile = file("Blob".java)
7977
sourceFile.code().shouldContain(EntityState::class.java.reference)
8078
}
8179
}

0 commit comments

Comments
 (0)