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);
}
}
Aggregations