Skip to content

Commit

Permalink
Add new test for ets file loading with dot
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf101 committed Aug 5, 2024
1 parent c6c300a commit 599b591
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import org.jacodb.ets.dto.convertToEtsMethod
import org.jacodb.ets.model.EtsClassSignature
import org.jacodb.ets.model.EtsMethodSignature
import org.jacodb.ets.test.utils.loadEtsFileDtoFromResource
import org.jacodb.ets.utils.loadEtsFileAutoConvert
import org.jacodb.ets.utils.loadEtsFileAutoConvertWithDot
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -75,7 +76,16 @@ class EtsFromJsonTest {
val path = "/source/example.ts"
val res = this::class.java.getResource(path)
?: error("Resource not found: $path")
val etsFile = loadEtsFileAutoConvertWithDot(res.path.drop(1), res.path.drop(1).substringBeforeLast("/"))
val etsFile = loadEtsFileAutoConvert(res.path)
println("etsFile = $etsFile")
}

@Test
fun testLoadEtsFileAutoConvertWithDot() {
val path = "/source/example.ts"
val res = this::class.java.getResource(path)
?: error("Resource not found: $path")
val etsFile = loadEtsFileAutoConvertWithDot(res.path, res.path.substringBeforeLast("/"))
println("etsFile = $etsFile")
}

Expand Down

0 comments on commit 599b591

Please sign in to comment.