assertEquals("2.4.0", versions.first().toString());
assertEquals("2.5.0", versions.last().toString());
}
public void testStrategyExactVersion() throws Exception {
RepositoryPlugin repo = createRepo();
Map<String, String> attrs = new HashMap<String, String>();
attrs.put("version", "2.5");
attrs.put("strategy", "exact");
File file = repo.get("javax.servlet:servlet-api", new Version(2, 5, 0), attrs , listener);
assertNotNull(file);
assertEquals( "servlet-api-2.5.jar", file.getName());
}