Use getResource for path in test case

This commit is contained in:
abosch
2017-01-04 12:55:13 +01:00
parent b0757ec4a0
commit 5c705cefd0

View File

@@ -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