DecimalRandom implements OrderedRandom<Double> { @Override public Double greater(final Double lower) { return this.between(lower, this.max); } DecimalRandom(final double min, final double max); @Override Double between(final Double lower, final Double upper); @Override Double greater(final Double lower); @Override Double lower(final Double upper);  }
@Test public void returnsGreaterDouble() { final DecimalRandom rand = new DecimalRandom( DecimalRandomTest.MIN, DecimalRandomTest.MAX ); final Double value = DecimalRandomTest.random(); MatcherAssert.assertThat( rand.greater(value), Matchers.greaterThanOrEqualTo(value) ); }