Constructor with default arguments for inner class
#KT-2852 Fixed
This commit is contained in:
+71
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2010-2012 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jetbrains.jet.codegen.generated;
|
||||
|
||||
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.InnerTestClasses;
|
||||
import org.jetbrains.jet.test.TestMetadata;
|
||||
|
||||
import org.jetbrains.jet.codegen.generated.AbstractCodegenTest;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. DO NOT MODIFY MANUALLY */
|
||||
@TestMetadata("compiler/testData/codegen/defaultArguments/blackBox")
|
||||
@InnerTestClasses({DefaultArgumentsBlackBoxTestGenerated.Constructor.class})
|
||||
public class DefaultArgumentsBlackBoxTestGenerated extends AbstractCodegenTest {
|
||||
public void testAllFilesPresentInBlackBox() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/defaultArguments/blackBox"), "kt", true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/defaultArguments/blackBox/constructor")
|
||||
public static class Constructor extends AbstractCodegenTest {
|
||||
public void testAllFilesPresentInConstructor() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/defaultArguments/blackBox/constructor"), "kt", true);
|
||||
}
|
||||
|
||||
@TestMetadata("defArgs1.kt")
|
||||
public void testDefArgs1() throws Exception {
|
||||
doTest("compiler/testData/codegen/defaultArguments/blackBox/constructor/defArgs1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defArgs1InnerClass.kt")
|
||||
public void testDefArgs1InnerClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/defaultArguments/blackBox/constructor/defArgs1InnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defArgs2.kt")
|
||||
public void testDefArgs2() throws Exception {
|
||||
doTest("compiler/testData/codegen/defaultArguments/blackBox/constructor/defArgs2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt2852.kt")
|
||||
public void testKt2852() throws Exception {
|
||||
doTest("compiler/testData/codegen/defaultArguments/blackBox/constructor/kt2852.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
TestSuite suite = new TestSuite("DefaultArgumentsBlackBoxTestGenerated");
|
||||
suite.addTestSuite(DefaultArgumentsBlackBoxTestGenerated.class);
|
||||
suite.addTestSuite(Constructor.class);
|
||||
return suite;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user