ScriptName now returns FqName, fully qualified with package name. Update usages and convert to internal format as needed.

This commit is contained in:
Ilya Ryzhenkov
2014-03-17 23:19:22 +04:00
committed by Andrey Breslav
parent d08f2bc7ab
commit 9239fa2ece
7 changed files with 34 additions and 9 deletions
@@ -49,6 +49,13 @@ public class ScriptTest {
aClass.getConstructor(int.class).newInstance(4);
}
@Test
public void testScriptWithPackage() throws Exception {
Class<?> aClass = compileScript("fib.pkg.ktscript", numIntParam(), Collections.<JetScriptDefinition>emptyList());
Assert.assertNotNull(aClass);
aClass.getConstructor(int.class).newInstance(4);
}
@Test
public void testScriptStandardExt() throws Exception {
Class<?> aClass = compileScript("fib.kt", numIntParam(), Collections.<JetScriptDefinition>emptyList());