Open nykolaslima opened 9 years ago
When we have an Collection of some primitive, we should be able to define has function using other functions to build the values.
Collection
has
e.g.
//private Set<String> names; add("names", has(2).of(regex("\\w{10}"));
The above code will generate 2 Strings using the regex function and then return a collection with those values.
regex
When we have an
Collection
of some primitive, we should be able to definehas
function using other functions to build the values.e.g.
The above code will generate 2 Strings using the
regex
function and then return a collection with those values.