use of com.android.tools.idea.tests.gui.framework.fixture.CreateFileFromTemplateDialogFixture in project android by JetBrains.
the class CreateNewClassDialogGuiTest method createInParentPackage.
@Test
public void createInParentPackage() throws IOException {
CreateFileFromTemplateDialogFixture dialog1 = invokeNewFileDialog();
dialog1.setName(THING_NAME);
dialog1.selectKind(Kind.CLASS);
dialog1.setPackage(PACKAGE_NAME_1);
dialog1.setVisibility(Visibility.PUBLIC);
dialog1.clickOk();
CreateFileFromTemplateDialogFixture dialog0 = invokeNewFileDialog();
dialog0.setName(THING_NAME);
dialog0.selectKind(Kind.CLASS);
dialog0.setPackage(PACKAGE_NAME_0);
dialog0.setVisibility(Visibility.PUBLIC);
dialog0.clickOk();
assertPackageName(THING_FILE_PATH_0, PACKAGE_NAME_0);
assertDeclaration(THING_FILE_PATH_0, PUBLIC_DECLARATION, Kind.CLASS);
}
Aggregations