KT-2640 Provide jet.MutableIterator and jet.MutableIterable

#KT-2640 fixed
This commit is contained in:
Svetlana Isakova
2012-08-24 15:07:00 +04:00
parent 422b938728
commit 0dcdaccad1
21 changed files with 175 additions and 9 deletions
@@ -1706,6 +1706,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/j+k/kt2394.kt");
}
@TestMetadata("mutableIterator.kt")
public void testMutableIterator() throws Exception {
doTest("compiler/testData/diagnostics/tests/j+k/mutableIterator.kt");
}
@TestMetadata("OverrideVararg.kt")
public void testOverrideVararg() throws Exception {
doTest("compiler/testData/diagnostics/tests/j+k/OverrideVararg.kt");
@@ -15,12 +15,15 @@
*/
package org.jetbrains.jet.jvm.compiler;
import junit.framework.Assert;
import junit.framework.Test;
import junit.framework.TestSuite;
import java.io.File;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.TestMetadata;
import java.io.File;
import org.jetbrains.jet.jvm.compiler.AbstractLoadJavaTest;
/** This class is generated by {@link org.jetbrains.jet.jvm.compiler.AbstractLoadJavaTest}. DO NOT MODIFY MANUALLY */
@TestMetadata("compiler/testData/loadJava")
@@ -370,6 +373,24 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
}
}
@TestMetadata("compiler/testData/loadJava/library")
public static class Library extends AbstractLoadJavaTest {
public void testAllFilesPresentInLibrary() throws Exception {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.jvm.compiler.AbstractLoadJavaTest", new File("compiler/testData/loadJava/library"), "java", false);
}
@TestMetadata("LoadIterable.java")
public void testLoadIterable() throws Exception {
doTest("compiler/testData/loadJava/library/LoadIterable.java");
}
@TestMetadata("LoadIterator.java")
public void testLoadIterator() throws Exception {
doTest("compiler/testData/loadJava/library/LoadIterator.java");
}
}
@TestMetadata("compiler/testData/loadJava/modality")
public static class Modality extends AbstractLoadJavaTest {
public void testAllFilesPresentInModality() throws Exception {
@@ -431,6 +452,7 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
suite.addTestSuite(Constructor.class);
suite.addTestSuite(JavaBean.class);
suite.addTest(KotlinSignature.innerSuite());
suite.addTestSuite(Library.class);
suite.addTestSuite(Modality.class);
suite.addTestSuite(NotNull.class);
suite.addTestSuite(Vararg.class);