Search in sources :

Example 1 with LogModel

use of com.intellij.notification.LogModel in project android by JetBrains.

the class MultiModuleThemeEditorTest method testModuleWithoutThemes.

@Test
public void testModuleWithoutThemes() throws IOException {
    guiTest.importProjectAndWaitForProjectSyncToFinish("MultiAndroidModule");
    final ThemeEditorFixture themeEditor = ThemeEditorGuiTestUtils.openThemeEditor(guiTest.ideFrame());
    final JComboBoxFixture modulesComboBox = themeEditor.getModulesComboBox();
    modulesComboBox.selectItem("app");
    themeEditor.getThemesComboBox().selectItem("AppTheme");
    themeEditor.waitForThemeSelection("AppTheme");
    modulesComboBox.selectItem("nothemeslibrary");
    guiTest.robot().waitForIdle();
    final LogModel logModel = EventLog.getLogModel(guiTest.ideFrame().getProject());
    for (Notification notification : logModel.getNotifications()) {
        assertThat(notification.getType()).isNotEqualTo(NotificationType.ERROR);
    }
}
Also used : JComboBoxFixture(org.fest.swing.fixture.JComboBoxFixture) LogModel(com.intellij.notification.LogModel) ThemeEditorFixture(com.android.tools.idea.tests.gui.framework.fixture.theme.ThemeEditorFixture) Notification(com.intellij.notification.Notification) Test(org.junit.Test)

Aggregations

ThemeEditorFixture (com.android.tools.idea.tests.gui.framework.fixture.theme.ThemeEditorFixture)1 LogModel (com.intellij.notification.LogModel)1 Notification (com.intellij.notification.Notification)1 JComboBoxFixture (org.fest.swing.fixture.JComboBoxFixture)1 Test (org.junit.Test)1