use of org.eclipse.epp.internal.mpc.core.model.Ius in project epp.mpc by eclipse.
the class MarketplaceInfoTest method createTestItem.
public static MarketplaceNodeCatalogItem createTestItem() throws Exception {
MarketplaceNodeCatalogItem item = new MarketplaceNodeCatalogItem();
item.setMarketplaceUrl(new URL("http://marketplace.eclipse.org"));
item.setId("123");
Node node = new Node();
node.setId(item.getId());
node.setUrl("http://marketplace.eclipse.org/node/" + node.getId());
node.setIus(new Ius());
addIu(node, "com.example.test.a1");
addIu(node, "com.example.test.a2");
item.setData(node);
item.setInstallableUnits(node.getIus().getIu());
return item;
}
use of org.eclipse.epp.internal.mpc.core.model.Ius in project epp.mpc by eclipse.
the class MarketplaceCatalogTest method setupNodes.
protected void setupNodes() {
Node node = new Node();
node.setName("Not installed");
node.setId("1001");
node.setIus(new Ius());
node.getIus().getIuElements().add(new Iu("org.example.notinstalled.iu"));
discoveryNodes.add(node);
node = new Node();
node.setName("Up to date");
node.setId("1002");
node.setIus(new Ius());
node.getIus().getIuElements().add(new Iu("org.example.installed.iu"));
discoveryNodes.add(node);
installedNodes.add(node);
node = new Node();
node.setName("Update available");
node.setId("1003");
node.setIus(new Ius());
node.getIus().getIuElements().add(new Iu("org.example.updateable.iu"));
discoveryNodes.add(node);
installedNodes.add(node);
updateAvailable.add(node);
}
Aggregations