@Test public void resolveMissingExtensionDependencyOnNamespace() throws Exception { ExtensionDependency extensionDependency = mock(ExtensionDependency.class); doThrow(ResolveException.class).when(this.coreExtensionRepository).resolve(extensionDependency); doThrow(ResolveException.class).when(this.localExtensionRepository).resolve(extensionDependency); assertNull(this.mocker.getComponentUnderTest().resolveExtension(extensionDependency, "wiki:math")); }
@Override public Extension resolveExtension(ExtensionId extensionId) throws ResolveException { try { return this.coreExtensionRepository.resolve(extensionId); } catch (ResolveException notACoreExtension) { return resolveExtensionFromInstalled(extensionId); } }
DefaultExtensionManager implements ExtensionManager, Initializable { @Override public Extension resolveExtension(ExtensionId extensionId) throws ResolveException { try { return this.coreExtensionRepository.resolve(extensionId); } catch (ResolveException notACoreExtension) { return resolveExtensionFromInstalled(extensionId); } } }
DefaultExtensionManager implements ExtensionManager, Initializable { @Override public Extension resolveExtension(ExtensionId extensionId) throws ResolveException { try { return this.coreExtensionRepository.resolve(extensionId); } catch (ResolveException notACoreExtension) { return resolveExtensionFromInstalled(extensionId); } }  }
DefaultExtensionManager implements ExtensionManager, Initializable { @Override public Extension resolveExtension(ExtensionId extensionId) throws ResolveException { try { return this.coreExtensionRepository.resolve(extensionId); } catch (ResolveException notACoreExtension) { return resolveExtensionFromInstalled(extensionId); } }  @Override void initialize(); @Override Extension resolveExtension(ExtensionId extensionId); @Override @Deprecated Extension resolveExtension(ExtensionDependency extensionDependency); @Override Extension resolveExtension(ExtensionDependency extensionDependency, String namespace); @Override ExtensionRepository getRepository(String repositoryId); @Override Extension getAccessibleExtension(String feature, Namespace namespace); @Override IterableResult<Extension> searchAccessibleExtensions(Namespace namespace, ExtensionQuery query); }
DefaultExtensionManager implements ExtensionManager, Initializable { @Override public Extension resolveExtension(ExtensionId extensionId) throws ResolveException { try { return this.coreExtensionRepository.resolve(extensionId); } catch (ResolveException notACoreExtension) { return resolveExtensionFromInstalled(extensionId); } }  @Override void initialize(); @Override Extension resolveExtension(ExtensionId extensionId); @Override @Deprecated Extension resolveExtension(ExtensionDependency extensionDependency); @Override Extension resolveExtension(ExtensionDependency extensionDependency, String namespace); @Override ExtensionRepository getRepository(String repositoryId); @Override Extension getAccessibleExtension(String feature, Namespace namespace); @Override IterableResult<Extension> searchAccessibleExtensions(Namespace namespace, ExtensionQuery query);  }