}
@Test
public void testQuietSettingOnGlobal() {
// Opening the selected page
tester.startPage(new GlobalSettingsPage());
tester.assertRenderedPage(GlobalSettingsPage.class);
tester.assertNoErrorMessage();
// Get GeoServer object for searching the global settings
GeoServer gs = getGeoServer();
// Set the root directory
FormTester form = tester.newFormTester("form");
form.setValue("extensions:0:content:quiet", false);
form.submit("submit");
// Check if no error has been found
tester.assertNoErrorMessage();
// Control if the defined root has been correctly set
assertEquals(
gs.getGlobal().getSettings().getMetadata().get(RESTUtils.QUIET_ON_NOT_FOUND_KEY, Boolean.class),
false);
// Opening the selected page
tester.startPage(new GlobalSettingsPage());
tester.assertRenderedPage(GlobalSettingsPage.class);
tester.assertNoErrorMessage();
// Get GeoServer object for searching the global settings
gs = getGeoServer();