use of org.eclipse.epp.internal.mpc.core.model.Favorites in project epp.mpc by eclipse.
the class UnmarshallerTest method favorites.
@Test
public void favorites() throws IOException, UnmarshalException {
// from http://www.eclipseplugincentral.net/favorites/top/api/p
Object model = processResource("resources/favorites.xml");
assertNotNull(model);
assertTrue(model instanceof Marketplace);
Marketplace marketplace = (Marketplace) model;
Favorites favorites = marketplace.getFavorites();
assertNotNull(favorites);
assertEquals(Integer.valueOf(6), favorites.getCount());
assertEquals(6, favorites.getNode().size());
INode node = favorites.getNode().get(0);
assertEquals("206", node.getId());
assertEquals("Mylyn", node.getName());
assertEquals("http://www.eclipseplugincentral.net/content/mylyn", node.getUrl());
assertEquals("resource", node.getType());
ICategories categories = node.getCategories();
assertNotNull(categories);
assertEquals(1, categories.getCategory().size());
ICategory category = categories.getCategory().get(0);
assertEquals("18", category.getId());
assertEquals("UI", category.getName());
assertEquals("http://www.eclipseplugincentral.net/taxonomy/term/18", category.getUrl());
assertEquals("Robert Elves", node.getOwner());
assertEquals(Integer.valueOf(16), node.getFavorited());
assertNotNull(node.getBody());
assertEquals("Mylyn is a task-focused interface for Eclipse that reduces information overload and makes multi-tasking easy. It does this by making tasks a first class part of Eclipse, and integrating rich and offline editing for repositories such as Bugzilla, Trac, and JIRA. Once your tasks are integrated, Mylyn monitors your work activity to identify information relevant to the task-at-hand, and uses this task context to focus the Eclipse UI on the interesting information, hide the uninteresting, and automatically find what's related. This puts the information you need to get work done at your fingertips and improves productivity by reducing searching, scrolling, and navigation. By making task context explicit Mylyn also facilitates multitasking, planning, reusing past efforts, and sharing expertise. ", node.getBody());
assertTrue(node.getFoundationmember());
assertEquals("http://eclipse.org/mylyn", node.getHomepageurl());
assertEquals("http://www.eclipse.org/mylyn/images/image-epic.gif", node.getImage());
assertEquals("3.3", node.getVersion());
assertEquals("EPL", node.getLicense());
assertEquals("Eclipse.org", node.getCompanyname());
assertEquals("Production/Stable", node.getStatus());
assertEquals("3.5, 3.4 and 3.3", node.getEclipseversion());
assertEquals("http://eclipse.org/mylyn/community/", node.getSupporturl());
assertEquals("http://download.eclipse.org/tools/mylyn/update/e3.4", node.getUpdateurl());
}
Aggregations