Android: Add intention to generate View constructor convention

Fixes #KT-15150
This commit is contained in:
Kirill Rakhman
2017-01-16 23:06:55 +01:00
committed by Vyacheslav Gerasimov
parent f74c0950d2
commit ca86dbee72
14 changed files with 258 additions and 0 deletions
@@ -50,4 +50,25 @@ public class AndroidQuickFixMultiFileTestGenerated extends AbstractAndroidQuickF
doTestWithExtraFile(fileName);
}
}
@TestMetadata("idea/testData/android/quickfix/viewConstructor")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class ViewConstructor extends AbstractAndroidQuickFixMultiFileTest {
public void testAllFilesPresentInViewConstructor() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/android/quickfix/viewConstructor"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
}
@TestMetadata("indirect.before.Main.kt")
public void testIndirect() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/android/quickfix/viewConstructor/indirect.before.Main.kt");
doTestWithExtraFile(fileName);
}
@TestMetadata("simple.before.Main.kt")
public void testSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/android/quickfix/viewConstructor/simple.before.Main.kt");
doTestWithExtraFile(fileName);
}
}
}