@Test public void shouldConstructAConstantGeneratorWithTheSpecifiedValue() throws Exception { Generator<Integer> expectedGenerator = new ConstantGenerator<Integer>(67463); Generator<Integer> actualGenerator = constantGenerator(67463); assertThat(actualGenerator, is(expectedGenerator)); }
public static <T> Generator<T> constantGenerator(T value) { return new ConstantGenerator<T>(value); }
Generators { public static <T> Generator<T> constantGenerator(T value) { return new ConstantGenerator<T>(value); } }
Generators { public static <T> Generator<T> constantGenerator(T value) { return new ConstantGenerator<T>(value); } private  Generators(); }
Generators { public static <T> Generator<T> constantGenerator(T value) { return new ConstantGenerator<T>(value); } private  Generators(); static Generator<T> constantGenerator(T value); static Generator<T> finiteGenerator(Iterable<T> iterable); @ToDo(raisedBy = "Toby", date = "2012-03-25", message = "This needs to tee rather than using the same instance in the same way that toIterable would") static Generatable<T> toGeneratable(final Generator<T> generator); }
Generators { public static <T> Generator<T> constantGenerator(T value) { return new ConstantGenerator<T>(value); } private  Generators(); static Generator<T> constantGenerator(T value); static Generator<T> finiteGenerator(Iterable<T> iterable); @ToDo(raisedBy = "Toby", date = "2012-03-25", message = "This needs to tee rather than using the same instance in the same way that toIterable would") static Generatable<T> toGeneratable(final Generator<T> generator);  }