use of org.xwiki.configuration.ConfigurationSource in project xwiki-platform by xwiki.
the class DefaultStandardURLConfigurationTest method isViewActionHidden.
@Test
public void isViewActionHidden() throws Exception {
ConfigurationSource source = this.mocker.getInstance(ConfigurationSource.class, "xwikiproperties");
when(source.getProperty("url.standard.hideViewAction", false)).thenReturn(false);
assertFalse(this.mocker.getComponentUnderTest().isViewActionHidden());
}
use of org.xwiki.configuration.ConfigurationSource in project xwiki-platform by xwiki.
the class DefaultStandardURLConfigurationTest method isPathBasedMultiWiki.
@Test
public void isPathBasedMultiWiki() throws Exception {
ConfigurationSource source = this.mocker.getInstance(ConfigurationSource.class, "xwikiproperties");
when(source.getProperty("url.standard.multiwiki.isPathBased", Boolean.TRUE)).thenReturn(Boolean.TRUE);
assertTrue(this.mocker.getComponentUnderTest().isPathBasedMultiWiki());
}
Aggregations