Refactor TopLevelMembersInvocationTest

Compile library dependencies in the test instead of storing them as jars in the
repository. Reuse MockLibraryUtil, move it from idea tests to compiler-tests
This commit is contained in:
Alexander Udalov
2013-10-10 18:06:52 +04:00
parent a2c74d4324
commit f8201c6aa9
6 changed files with 29 additions and 15 deletions
@@ -45,12 +45,6 @@ Retention(RetentionPolicy.RUNTIME)
private annotation class GenScript(val dir: String, val source: String, val binary: String)
private object BinaryTestData {
GenScript("compiler/testData/codegen/topLevelMemberInvocation/twoModules", "a.kt", "a.jar")
fun genTwoModules() {
jar("a.jar", "a")
rm("a")
}
GenScript("compiler/testData/compileKotlinAgainstBinariesCustom/brokenJarWithNoClassForObjectProperty", "source.kt", "broken.jar")
fun genBrokenJarWithNoClassForObjectProperty() {
rm("test/Lol.class")