File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
tests/codegen/service-codegen-tests/src/test/kotlin/com/test Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 55
66package com.test
77
8+ import java.nio.file.Files
89import java.nio.file.Path
910import java.nio.file.Paths
1011import kotlin.io.path.exists
@@ -19,6 +20,11 @@ class ServiceFileTest {
1920
2021 @Test
2122 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+ }
2228 assertTrue(projectDir.resolve(" build.gradle.kts" ).exists())
2329 assertTrue(projectDir.resolve(" settings.gradle.kts" ).exists())
2430 assertTrue(projectDir.resolve(" src/main/kotlin/$packagePath /Main.kt" ).exists())
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ internal fun startService(
3030 )
3131 .build()
3232 }
33- val isWindows = System .getProperty( " os.name " ).startsWith( " Windows " , ignoreCase = true )
34- val gradleCmd = if (isWindows) " gradlew.bat" else " ./gradlew"
35- val baseCmd = if (isWindows) listOf (" cmd" , " /c" , gradleCmd) else listOf (gradleCmd)
33+
34+ val gradleCmd = if (isWindows() ) " gradlew.bat" else " ./gradlew"
35+ val baseCmd = if (isWindows() ) listOf (" cmd" , " /c" , gradleCmd) else listOf (gradleCmd)
3636
3737 return ProcessBuilder (
3838 baseCmd + listOf (
You can’t perform that action at this time.
0 commit comments