NamespaceGenTest doesn't require stdlib
This commit is contained in:
committed by
Alexander Udalov
parent
9bf73cf4b3
commit
ecbb2f10ef
@@ -23,6 +23,7 @@ import java.awt.*;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.jetbrains.jet.codegen.CodegenTestUtil.assertIsCurrentTime;
|
||||
|
||||
@@ -31,7 +32,7 @@ public class NamespaceGenTest extends CodegenTestCase {
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.ALL);
|
||||
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
|
||||
}
|
||||
|
||||
public void testPSVM() throws Exception {
|
||||
@@ -286,10 +287,11 @@ public class NamespaceGenTest extends CodegenTestCase {
|
||||
assertEquals(239, main.invoke(null, new Object[]{null}));
|
||||
}
|
||||
|
||||
public void _testVarargs() throws Exception {
|
||||
public void testVarargs() throws Exception {
|
||||
loadText("fun foo() = java.util.Arrays.asList(\"IntelliJ\", \"IDEA\")");
|
||||
final Method main = generateFunction();
|
||||
ArrayList arrayList = (ArrayList) main.invoke(null);
|
||||
java.util.List<?> list = (java.util.List<?>) main.invoke(null);
|
||||
assertEquals(Arrays.asList("IntelliJ", "IDEA"), list);
|
||||
}
|
||||
|
||||
public void testFieldRead() throws Exception {
|
||||
@@ -441,10 +443,6 @@ public class NamespaceGenTest extends CodegenTestCase {
|
||||
blackBoxFile("checkCast.kt");
|
||||
}
|
||||
|
||||
public void testTypeCastException() throws Exception {
|
||||
blackBoxFile("typeCastException.kt");
|
||||
}
|
||||
|
||||
public void testPutBooleanAsVoid() throws Exception {
|
||||
loadText("class C(val x: Int) { { x > 0 } } fun box() { val c = C(0) } ");
|
||||
final Method main = generateFunction();
|
||||
|
||||
@@ -371,4 +371,8 @@ public class StdlibTest extends CodegenTestCase {
|
||||
public void testKt1515() {
|
||||
blackBoxMultiFile("/multi/kt1515/thisPackage.kt", "/multi/kt1515/otherPackage.kt");
|
||||
}
|
||||
|
||||
public void testTypeCastException() {
|
||||
blackBoxFile("typeCastException.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user