@Test public void testGetUserMappingsWithOneCouple() throws Exception { this.mockery.checking(new Expectations() {{ allowing(xwikiMock).getXWikiPreference("puma_userMapping", getContext()); will(returnValue("xwikifield=pumagfield")); }}); Map<String, String> userMapping = this.config.getUserMapping(getContext()); Assert.assertEquals("pumagfield", userMapping.get("xwikifield")); }
public Map<String, String> getUserMapping(XWikiContext context) { return getMapParam("userMapping", ',', null, context); }
PUMAConfig extends Config { public Map<String, String> getUserMapping(XWikiContext context) { return getMapParam("userMapping", ',', null, context); } }
PUMAConfig extends Config { public Map<String, String> getUserMapping(XWikiContext context) { return getMapParam("userMapping", ',', null, context); } PUMAConfig(); }
PUMAConfig extends Config { public Map<String, String> getUserMapping(XWikiContext context) { return getMapParam("userMapping", ',', null, context); } PUMAConfig(); String getUserUidField(XWikiContext context); Map<String, String> getUserMapping(XWikiContext context); Map<String, Collection<String>> getGroupMapping(XWikiContext context); XWikiAuthService getFallbackAuthenticator(XWikiContext context); }
PUMAConfig extends Config { public Map<String, String> getUserMapping(XWikiContext context) { return getMapParam("userMapping", ',', null, context); } PUMAConfig(); String getUserUidField(XWikiContext context); Map<String, String> getUserMapping(XWikiContext context); Map<String, Collection<String>> getGroupMapping(XWikiContext context); XWikiAuthService getFallbackAuthenticator(XWikiContext context);  }