SourceDSL { public static ArbitraryDSL arbitrary() { return new ArbitraryDSL(); }  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 shouldShrinkConstantsTowardsConstantValue() { Gen<Integer> testee = arbitrary().constant(42); assertThatGenerator(testee).shrinksTowards(42); }
@Test public void shouldShrinkTowardsFirstItemInPickedList() { Gen<String> testee = arbitrary() .pick(java.util.Arrays.asList("a", "b", "c")); assertThatGenerator(testee).shrinksTowards("a"); }
@Test public void shouldShrinkEnumsTowardsFirstDefinedConstant() { Gen<AnEnum> testee = arbitrary().enumValues(AnEnum.class); assertThatGenerator(testee).shrinksTowards(AnEnum.A); }
@Test public void shouldNotShrinkEnumsWhenNoShrinkPoint() { Gen<AnEnum> testee = arbitrary().enumValuesWithNoOrder(AnEnum.class); assertThatGenerator(testee).hasNoShrinkPoint(); }