ReaperApplicationConfiguration extends Configuration { public void setRepairIntensity(double repairIntensity) { this.repairIntensity = repairIntensity; }  Jmxmp getJmxmp(); void setJmxmp(Jmxmp jmxmp); int getSegmentCount(); void setSegmentCount(int segmentCount); int getSegmentCountPerNode(); void setSegmentCountPerNode(int segmentCountPerNode); int getMaxPendingCompactions(); void setMaxPendingCompactions(int maxPendingCompactions); RepairParallelism getRepairParallelism(); void setRepairParallelism(RepairParallelism repairParallelism); double getRepairIntensity(); void setRepairIntensity(double repairIntensity); boolean getIncrementalRepair(); void setIncrementalRepair(boolean incrementalRepair); boolean getBlacklistTwcsTables(); void setBlacklistTwcsTables(boolean blacklistTwcsTables); Integer getScheduleDaysBetween(); void setScheduleDaysBetween(int scheduleDaysBetween); int getRepairRunThreadCount(); void setRepairRunThreadCount(int repairRunThreadCount); String getStorageType(); void setEnableCrossOrigin(String enableCrossOrigin); String getEnableCrossOrigin(); boolean isEnableCrossOrigin(); void setStorageType(String storageType); DataSourceFactory getDataSourceFactory(); @JsonProperty("h2") DataSourceFactory getH2DataSourceFactory(); @JsonProperty("h2") void setH2DataSourceFactory(DataSourceFactory h2); @JsonProperty("postgres") DataSourceFactory getPostgresDataSourceFactory(); @JsonProperty("postgres") void setPostgresDataSourceFactory(DataSourceFactory postgres); int getRepairManagerSchedulingIntervalSeconds(); @JsonProperty void setRepairManagerSchedulingIntervalSeconds(int repairManagerSchedulingIntervalSeconds); Map<String, Integer> getJmxPorts(); void setJmxPorts(Map<String, Integer> jmxPorts); JmxCredentials getJmxAuth(); void setJmxAuth(JmxCredentials jmxAuth); Map<String, JmxCredentials> getJmxCredentials(); void setJmxCredentials(Map<String, JmxCredentials> jmxCredentials); boolean hasAutoSchedulingEnabled(); AutoSchedulingConfiguration getAutoScheduling(); void setAutoScheduling(AutoSchedulingConfiguration autoRepairScheduling); void setEnableDynamicSeedList(boolean enableDynamicSeedList); boolean getEnableDynamicSeedList(); void setActivateQueryLogger(boolean activateQueryLogger); boolean getActivateQueryLogger(); void setUseAddressTranslator(boolean useAddressTranslator); boolean useAddressTranslator(); @JsonProperty("cassandra") CassandraFactory getCassandraFactory(); @JsonProperty("cassandra") void setCassandraFactory(CassandraFactory cassandra); int getHangingRepairTimeoutMins(); @JsonProperty void setJmxConnectionTimeoutInSeconds(int jmxConnectionTimeoutInSeconds); int getJmxConnectionTimeoutInSeconds(); @JsonProperty void setClusterTimeoutInDays(int clusterTimeoutInDays); int getClusterTimeoutInDays(); @JsonProperty void setHangingRepairTimeoutMins(int hangingRepairTimeoutMins); DatacenterAvailability getDatacenterAvailability(); @JsonProperty("datacenterAvailability") void setDatacenterAvailability(DatacenterAvailability datacenterAvailability); AccessControlConfiguration getAccessControl(); void setAccessControl(AccessControlConfiguration accessControl); boolean isAccessControlEnabled(); int getRepairThreadCount(); Integer getPurgeRecordsAfterInDays(); @JsonProperty("purgeRecordsAfterInDays") void setPurgeRecordsAfterInDays(Integer purgeRecordsAfterInDays); Integer getNumberOfRunsToKeepPerUnit(); @JsonProperty("numberOfRunsToKeepPerUnit") void setNumberOfRunsToKeepPerUnit(Integer numberOfRunsToKeepPerUnit); Boolean isInSidecarMode(); Optional<String> getEnforcedLocalNode(); Optional<String> getEnforcedLocalClusterName(); Optional<String> getEnforcedLocalDatacenter(); void setEnforcedLocalNode(Optional<String> enforcedLocalNode); void setEnforcedLocalClusterName(Optional<String> enforcedLocalClusterName); void setEnforcedLocalDatacenter(Optional<String> enforcedLocalDatacenter); boolean getEnableConcurrentMigrations(); void setEnableConcurrentMigrations(boolean enableConcurrentMigrations); HttpClientConfiguration getHttpClientConfiguration(); void setHttpClientConfiguration(HttpClientConfiguration httpClient); @JsonProperty Optional<AddressTranslatorFactory> getJmxAddressTranslator(); @JsonProperty void setJmxAddressTranslator(Optional<AddressTranslatorFactory> jmxAddressTranslator); @Nullable CryptographFactory getCryptograph(); void setCryptograph(@Nullable CryptographFactory cryptograph);  }
@Test public void testRepairIntensity() { config.setRepairIntensity(-0.1); assertThat(validator.validate(config)).hasSize(1); config.setRepairIntensity(0); assertThat(validator.validate(config)).hasSize(1); config.setRepairIntensity(1); assertThat(validator.validate(config)).hasSize(0); }