Skip to content

Commit 07693cb

Browse files
author
luigi
committed
fix
1 parent dfd3530 commit 07693cb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/codegen/service-codegen-tests/src/test/kotlin/com/test/ServiceEngineFactoryTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ServiceEngineFactoryTest {
2020
val requestBodyLimit: Long = 10L * 1024 * 1024
2121

2222
val portListnerTimeout = 180L
23-
val projectDir: Path = Paths.get("build/generated-service")
23+
val projectDir: Path = Paths.get("build/service-generator-test")
2424

2525
@Test
2626
fun `checks service with netty engine`() {

tests/codegen/service-codegen-tests/src/test/kotlin/com/test/ServiceFileTest.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
package com.test
77

8-
import java.nio.file.Files
98
import java.nio.file.Path
109
import java.nio.file.Paths
1110
import kotlin.io.path.exists
@@ -16,15 +15,10 @@ class ServiceFileTest {
1615
val packageName = "com.test"
1716
val packagePath = packageName.replace('.', '/')
1817

19-
val projectDir: Path = Paths.get("build/generated-service")
18+
val projectDir: Path = Paths.get("build/service-generator-test")
2019

2120
@Test
2221
fun `generates service and all necessary files`() {
23-
Files.walk(projectDir).use { stream ->
24-
stream
25-
.filter { Files.isRegularFile(it) } // skip sub‑directories
26-
.forEach { println(it) } // print full path of each file
27-
}
2822
assertTrue(projectDir.resolve("build.gradle.kts").exists())
2923
assertTrue(projectDir.resolve("settings.gradle.kts").exists())
3024
assertTrue(projectDir.resolve("src/main/kotlin/$packagePath/Main.kt").exists())

0 commit comments

Comments
 (0)