SourceDSL { public static DoublesDSL doubles() { return new DoublesDSL(); }  static LongsDSL longs(); static IntegersDSL integers(); static DoublesDSL doubles(); static FloatsDSL floats(); static CharactersDSL characters(); static StringsDSL strings(); static ListsDSL lists(); static MapsDSL maps(); static ArraysDSL arrays(); static BigIntegersDSL bigIntegers(); static BigDecimalsDSL bigDecimals(); static ArbitraryDSL arbitrary(); static DatesDSL dates(); static LocalDatesDSL localDates(); static BooleansDSL booleans();  }
@Test public void shouldGeneratePositiveDoublesBetweenZeroAndInfinity() { Gen<Double> testee = doubles().positive(); assertThatGenerator(testee).generatesTheMinAndMax(0.0d, Double.POSITIVE_INFINITY); }
@Test public void shouldGenerateDistrinctPositiveDoubles() { Gen<Double> testee = doubles().positive(); assertThatGenerator(testee).generatesAtLeastNDistinctValues(1000); }
@Test public void shouldGenerateNegativeDoublesBetweenZeroAndInfinity() { Gen<Double> testee = doubles().negative(); assertThatGenerator(testee).generatesTheMinAndMax(-0d, Double.NEGATIVE_INFINITY); }
@Test public void shouldGenerateDistrinctNegativeDoubles() { Gen<Double> testee = doubles().negative(); assertThatGenerator(testee).generatesAtLeastNDistinctValues(1000); }
@Test public void shouldGenerateDoublePositiveInfinityAndZero() { Gen<Double> testee = doubles().positive(); assertThatGenerator(testee).generatesTheMinAndMax(0d, Double.POSITIVE_INFINITY); }
@Test public void shouldGenerateDoubleZeroAndOne() { Gen<Double> testee = doubles().fromZeroToOne(); assertThatGenerator(testee).generatesTheMinAndMax(0d, 1d); }
@Test public void shouldRespectDoublesUpToAndIncludingBound() { Gen<Double> testee = doubles().from(0d).upToAndIncluding(42d); assertThatGenerator(testee).generatesTheMinAndMax(0d, 42d); }