1 package com.google.code.beanmatchers;
2
3 import static java.util.Collections.singleton;
4
5 import java.util.Random;
6 import java.util.Set;
7
8 class SetGenerator implements ValueGenerator<Set> {
9
10 private final Random random;
11
12 public SetGenerator(Random random) {
13 this.random = random;
14 }
15
16 public Set generate() {
17 return singleton(random.nextInt());
18 }
19 }