@Test public void getAdminResourceResolver() throws LoginException { when(resolverFactory.getServiceResourceResolver(Mockito.any())).thenReturn(resolver); ResourceResolver serviceResolver = service.getAdminResourceResolver(); assertEquals(resolver, serviceResolver); }
public ResourceResolver getAdminResourceResolver() throws LoginException { final Map<String, Object> authenticationInfo = new HashMap<>(); authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SUBSERVICE_AECU_ADMIN); return resolverFactory.getServiceResourceResolver(authenticationInfo); }
ServiceResourceResolverService { public ResourceResolver getAdminResourceResolver() throws LoginException { final Map<String, Object> authenticationInfo = new HashMap<>(); authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SUBSERVICE_AECU_ADMIN); return resolverFactory.getServiceResourceResolver(authenticationInfo); } }
ServiceResourceResolverService { public ResourceResolver getAdminResourceResolver() throws LoginException { final Map<String, Object> authenticationInfo = new HashMap<>(); authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SUBSERVICE_AECU_ADMIN); return resolverFactory.getServiceResourceResolver(authenticationInfo); }  }
ServiceResourceResolverService { public ResourceResolver getAdminResourceResolver() throws LoginException { final Map<String, Object> authenticationInfo = new HashMap<>(); authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SUBSERVICE_AECU_ADMIN); return resolverFactory.getServiceResourceResolver(authenticationInfo); }  ResourceResolver getServiceResourceResolver(); ResourceResolver getContentMigratorResourceResolver(); ResourceResolver getAdminResourceResolver(); }
ServiceResourceResolverService { public ResourceResolver getAdminResourceResolver() throws LoginException { final Map<String, Object> authenticationInfo = new HashMap<>(); authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SUBSERVICE_AECU_ADMIN); return resolverFactory.getServiceResourceResolver(authenticationInfo); }  ResourceResolver getServiceResourceResolver(); ResourceResolver getContentMigratorResourceResolver(); ResourceResolver getAdminResourceResolver();  }