<description>
The database scanning configuration.
</description>
+ </field>\r
+ <field>\r
+ <name>webapp</name>\r
+ <version>1.0.0+</version>\r
+ <association>\r
+ <type>WebappConfiguration</type>\r
+ <multiplicity>1</multiplicity>\r
+ </association>\r
+ <description>\r
+ The webapp configuration.\r
+ </description>\r
</field>
</fields>
<codeSegments>
</fields>
</class>
\r
+ <!-- \r
+ __ _______ ____ _ ____ ____ \r
+ \ \ / / ____| __ ) / \ | _ \| _ \ \r
+ \ \ /\ / /| _| | _ \ / _ \ | |_) | |_) |\r
+ \ V V / | |___| |_) / ___ \| __/| __/ \r
+ \_/\_/ |_____|____/_/ \_\_| |_| \r
+ \r
+ -->\r
+ \r
+ <class>\r
+ <name>WebappConfiguration</name>\r
+ <version>1.0.0+</version>\r
+ <description>\r
+ The webapp configuration settings.\r
+ </description>\r
+ <fields>\r
+ <field>\r
+ <name>ui</name>\r
+ <description>options for altering the ui presentation</description>\r
+ <version>1.0.0+</version>\r
+ <association>\r
+ <type>UserInterfaceOptions</type>\r
+ </association> \r
+ </field>\r
+ </fields>\r
+ </class>\r
+ \r
+ <class>\r
+ <name>UserInterfaceOptions</name>\r
+ <version>1.0.0+</version>\r
+ <description>\r
+ The user interface configuration settings.\r
+ </description>\r
+ <fields>\r
+ <field>\r
+ <name>showFindArtifacts</name>\r
+ <description>true if find artifacts should be enabled</description>\r
+ <version>1.0.0+</version> \r
+ <type>boolean</type> \r
+ <defaultValue>false</defaultValue>\r
+ </field>\r
+ </fields>\r
+ </class>\r
+ \r
</classes>\r
</model>\r
\r
assertEquals( "check managed repositories", "internal", repository.getId() );
assertEquals( "check managed repositories", "default", repository.getLayout() );
assertTrue( "check managed repositories", repository.isIndexed() );
+
+ WebappConfiguration webapp = (WebappConfiguration) configuration.getWebapp();
+ assertNotNull( "check webapp", webapp );
+
+ UserInterfaceOptions ui = (UserInterfaceOptions) webapp.getUi();
+ assertNotNull( "check webapp ui", ui );
+ assertFalse( "check showFindArtifacts", ui.isShowFindArtifacts() );
}
public void testGetConfigurationSystemOverride() throws Exception