Search in sources :

Example 21 with CreateFileFromTemplateDialogFixture

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);
}
Also used : CreateFileFromTemplateDialogFixture(com.android.tools.idea.tests.gui.framework.fixture.CreateFileFromTemplateDialogFixture) Test(org.junit.Test)

Aggregations

CreateFileFromTemplateDialogFixture (com.android.tools.idea.tests.gui.framework.fixture.CreateFileFromTemplateDialogFixture)21 Test (org.junit.Test)17 JCheckBoxFixture (org.fest.swing.fixture.JCheckBoxFixture)1 Ignore (org.junit.Ignore)1