use of org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceInfo in project epp.mpc by eclipse.
the class MarketplaceInfoSerializationTest method loadEmpty.
@Test
public void loadEmpty() throws Exception {
createEmptyRegistryFile(getUserHomeRegistryFile());
MarketplaceInfo loaded = loadMarketplaceInfo();
assertNull(loaded);
}
use of org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceInfo in project epp.mpc by eclipse.
the class MarketplaceInfoSerializationTest method load.
@Test
public void load() throws Exception {
File registryFile = getUserHomeRegistryFile();
copyRegistryFile(registryFile, 100);
MarketplaceInfo loaded = loadMarketplaceInfo();
assertFalse(loaded.getIuToNodeKey().isEmpty());
assertFalse(loaded.getNodeKeyToIU().isEmpty());
MarketplaceNodeCatalogItem item = MarketplaceInfoTest.createTestItem();
catalogRegistry.map(item.getMarketplaceUrl(), item.getData());
assertEquals(catalogRegistry.getIuToNodeKey(), loaded.getIuToNodeKey());
assertEquals(catalogRegistry.getNodeKeyToIU(), loaded.getNodeKeyToIU());
}
use of org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceInfo in project epp.mpc by eclipse.
the class MarketplaceInfoTest method before.
@Before
public void before() throws Exception {
catalogRegistry = new MarketplaceInfo();
item = createTestItem();
}
Aggregations