File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
tests/codegen/service-codegen-tests/src/test/kotlin/com/test Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff 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` () {
Original file line number Diff line number Diff line change 55
66package com.test
77
8- import java.nio.file.Files
98import java.nio.file.Path
109import java.nio.file.Paths
1110import 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())
You can’t perform that action at this time.
0 commit comments