/** * Constructs a new POJO based on the provided {@link ServerConfiguration} * * @param template Template used to initialize properties */ public ServerConfigurationPOJO(ServerConfiguration template) throws IOException { this.serviceInformation = template.getServiceInformation(); this.runtimeStatsEnabled = template.isRuntimeStatsEnabled(); setLockProvider(template.getLockProvider()); this.fullWMS = template.isFullWMS(); this.wmtsCiteCompliant = template.isWmtsCiteCompliant(); this.backendTimeout = template.getBackendTimeout(); this.cacheBypassAllowed = template.isCacheBypassAllowed(); this.version = template.getVersion(); this.identifier = template.getIdentifier(); this.location = template.getLocation(); }
assertTrue(cacheBypassAllowed); Integer backendTimeout = config.getBackendTimeout(); assertEquals(backendTimeout, (Integer) 120); config.setBackendTimeout(60); backendTimeout = config.getBackendTimeout(); assertEquals(backendTimeout, (Integer) 60); assertTrue((config.isWmtsCiteCompliant())); assertTrue(config.isCacheBypassAllowed()); assertEquals(config.getBackendTimeout(), (Integer) 60); assertThat(config.getVersion(), TestUtils.matchesRegex(VERSION_PATTERN));