mirror of
https://github.com/jlengrand/detekt.git
synced 2026-03-10 08:11:23 +00:00
Use getResource for path in test case
This commit is contained in:
@@ -12,7 +12,7 @@ import kotlin.test.assertTrue
|
||||
*/
|
||||
internal class DetektBaselineFormatTest {
|
||||
|
||||
private val path = File("./src/test/resources").toPath()
|
||||
private val path = File(javaClass.getResource("/").path).toPath()
|
||||
private val fullPath = path.resolve(DetektBaselineFormat.BASELINE_FILE)
|
||||
|
||||
@AfterEach
|
||||
|
||||
Reference in New Issue
Block a user