Skip to content

Commit

Permalink
cleanup DMI_DOH
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenporras authored Oct 16, 2023
1 parent 997b0ac commit 029afbb
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@

package com.avaloq.tools.ddk.test.ui.swtbot.util;

import static org.junit.Assert.fail;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.eclipse.ui.PlatformUI;
import org.junit.Assert;

import com.avaloq.tools.ddk.test.ui.swtbot.SwtWorkbenchBot;

Expand Down Expand Up @@ -48,9 +47,7 @@ public static void selectProjectFolder(final SwtWorkbenchBot bot, final String f
final Tree tree = bot.widget(WidgetMatcherFactory.widgetOfType(Tree.class), comp);
PlatformUI.getWorkbench().getDisplay().syncExec(() -> {
SWTBotTree botTree = new SWTBotTree(tree);
if (!selectItem(botTree, folderName)) {
fail("folder was not found");
}
Assert.assertTrue("folder was not found", selectItem(botTree, folderName));
});
}

Expand Down

0 comments on commit 029afbb

Please sign in to comment.