use of org.graalvm.component.installer.model.ComponentRegistry in project graal by oracle.
the class UpgradeTest method testUpgradePythonMostRecent.
/**
* Tests upgrade to version AT LEAST 1.0.1.
*/
@Test
public void testUpgradePythonMostRecent() throws Exception {
initVersion("1.0.0.0");
textParams.add("python+1.0.1");
ComponentInfo ci = new ComponentInfo("org.graalvm.python", "Installed Python", "1.0.0.0");
storage.installed.add(ci);
UpgradeCommand cmd = new UpgradeCommand();
cmd.init(this, this);
assertEquals(0, cmd.execute());
ComponentRegistry newReg = cmd.getProcess().getNewGraalRegistry();
ComponentInfo python = newReg.findComponent("python");
assertEquals("1.1.0.0", python.getVersion().toString());
}
Aggregations