Skip to content

Commit

Permalink
[Releng] fixed tests
Browse files Browse the repository at this point in the history
Change-Id: I45173d7c7935e2a6b731aa11ed908b477813dc1e
Signed-off-by: Leif Geiger <leif.geiger@yatta.de>
  • Loading branch information
l3-g5 committed Feb 21, 2024
1 parent f1330b3 commit 62284ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion org.eclipse.epp.mpc.tests.catalog/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<catalog
icon="icons/marketplace32.png"
label="Eclipse Plugin Central"
url="http://www.eclipseplugincentral.net">
url="marketplace.eclipse.org">
<!-- url="http://www.eclipseplugincentral.net">-->
</catalog>
</extension>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
@Category({ RemoteTests.class, UITests.class })
public class MarketplaceClientServiceTest extends AbstractMarketplaceWizardBotTest {

private static final String ITEM_ID = "8068";
private static final String ITEM_ID = "4123770";

private Display display;

Expand Down Expand Up @@ -102,8 +102,9 @@ public void testOpenNodes() throws Exception {
public void testOpenSearch() throws Exception {
final IMarket toolsMarket = QueryHelper.marketByName("Tools");
final ICategory mylynCategory = QueryHelper.categoryByName("Editor");
final String query = "windowbuilder";

display.asyncExec(() -> service.openSearch(config, toolsMarket, mylynCategory, "jaspersoft"));
display.asyncExec(() -> service.openSearch(config, toolsMarket, mylynCategory, query));

initWizardBot();
checkSelectedTab("Search");
Expand All @@ -114,9 +115,9 @@ public void testOpenSearch() throws Exception {
assertEquals("Editor", categoryCombo.getText());

SWTBotText searchText = bot.text(0);
assertEquals("jaspersoft", searchText.getText());
assertEquals(query, searchText.getText());

itemBot(NodeMatcher.withNameRegex(".*Jaspersoft.*"));
itemBot(NodeMatcher.withNameRegex(".*WindowBuilder.*"));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public void testSelectCategory() {

@Test
public void testSearch() {
search("Jaspersoft");
itemBot(NodeMatcher.withNameRegex(".*Jaspersoft.*"));
search("WindowBuilder");
itemBot(NodeMatcher.withNameRegex(".*WindowBuilder.*"));
}

@Ignore //Tags are currently disabled in the REST API
Expand Down

0 comments on commit 62284ea

Please sign in to comment.