Skip to content

Commit

Permalink
✨ Testinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed May 14, 2024
1 parent 471591c commit 0e0c276
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/kotlin/AdvancedTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import com.yhs0602.vm.Environment
import com.yhs0602.vm.GeneralMockedClass
import com.yhs0602.vm.RegisterValue
import com.yhs0602.vm.executeMethod
import java.io.File
import java.io.PrintStream
import java.nio.file.Paths
import kotlin.jvm.internal.Intrinsics
Expand Down Expand Up @@ -85,4 +86,24 @@ class AdvancedTest {
)
)
}

@Test
fun TestInstance() {
testInterpreter(
"src/test/resources/advanced/",
"com.example.sample",
"ObjectExampleKt",
"testObjects",
listOf(
GeneralMockedClass(StringBuilder::class.java),
GeneralMockedClass(System::class.java),
GeneralMockedClass(Intrinsics::class.java),
GeneralMockedClass(Object::class.java),
GeneralMockedClass(PrintStream::class.java),
GeneralMockedClass(Math::class.java),
GeneralMockedClass(File::class.java),
GeneralMockedClass(java.lang.Double::class.java)
)
)
}
}

0 comments on commit 0e0c276

Please sign in to comment.