@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_tombstone_threshold_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); } }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_out_of_range() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(1.89).build(); }
.bucketLow(0.5) .bucketHigh(1.2) .coldReadsRatioToOmit(0.89) .enabled(true) .minThreshold(2)
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_tombstone_threshold_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); } }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_negative() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(-1.0).build(); }
@Test(groups = "unit", expectedExceptions = IllegalArgumentException.class) public void should_throw_exception_if_cold_read_ratio_out_of_range() throws Exception { sizedTieredStategy().bucketLow(0.5).bucketHigh(1.2).coldReadsRatioToOmit(1.89).build(); }
.bucketLow(0.5) .bucketHigh(1.2) .coldReadsRatioToOmit(0.89) .enabled(true) .minThreshold(2)