use of org.eclipse.tycho.versions.engine.IllegalVersionChangeException in project tycho by eclipse.
the class VersionsEngineTest method assertNonOsgiVersionOsgiProject.
private void assertNonOsgiVersionOsgiProject(String artifactId) throws Exception {
File basedir = TestUtil.getBasedir("projects/nonosgiversion/" + artifactId);
VersionsEngine engine = newEngine(basedir);
engine.addVersionChange(artifactId, "1.0.1-01");
try {
engine.apply();
fail();
} catch (IllegalVersionChangeException e) {
// not a valid osgi version
assertEquals(1, e.getErrors().size());
}
}
Aggregations