Support synthetic java properties in REPL

Use brand new iterable injection
This commit is contained in:
Pavel V. Talanov
2015-07-16 18:03:32 +03:00
parent 07139879cd
commit 2896ec67ba
4 changed files with 20 additions and 4 deletions
@@ -286,4 +286,19 @@ public class ReplInterpreterTestGenerated extends AbstractReplInterpreterTest {
doTest(fileName);
}
}
@TestMetadata("compiler/testData/repl/useJava")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class UseJava extends AbstractReplInterpreterTest {
public void testAllFilesPresentInUseJava() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/repl/useJava"), Pattern.compile("^(.+)\\.repl$"), true);
}
@TestMetadata("syntheticProperty.repl")
public void testSyntheticProperty() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/repl/useJava/syntheticProperty.repl");
doTest(fileName);
}
}
}