failing test for Java Integer to Int? mapping

This commit is contained in:
Dmitry Jemerov
2011-04-07 14:20:08 +02:00
parent 5f2aa9e1f7
commit 72eda24f62
@@ -214,6 +214,12 @@ public class NamespaceGenTest extends LightCodeInsightFixtureTestCase {
assertEquals(239, main.invoke(null, new Object[]{null}));
}
public void testBoxingInCall() throws Exception {
loadText("fun foo(s: String): Int? = Integer.getInteger(s, 239)");
final Method main = generateFunction();
assertEquals(239, main.invoke(null, "no.such.system.property"));
}
public void testLong() throws Exception {
loadText("fun foo(a: Long, b: Long): Long = a + b");
System.out.println(generateToText());