use of org.xwiki.extension.event.ExtensionUpgradedEvent in project xwiki-platform by xwiki.
the class JARTranslationBundleFactoryTest method mockUpgradeExtension.
private void mockUpgradeExtension(ExtensionId previousExtensionId, ExtensionId newExtensionId, String namespace) throws ComponentLookupException {
DefaultInstalledExtension previousInstalledExtension = mockInstalledExtension(previousExtensionId, namespace);
DefaultInstalledExtension newInstalledExtension = mockInstalledExtension(newExtensionId, namespace);
getObservationManager().notify(new ExtensionUpgradedEvent(newExtensionId, namespace), newInstalledExtension, Arrays.asList(previousInstalledExtension));
}
Aggregations