Altering Container Size

0. Class

public class Generate {
	List<GenerateElement> values;
}

public class GenerateElement {
	List<String> values;
}

1. Generating ArbitraryBuilder

ArbitraryBuilder<Generate> generateBuilder = fixtureMonkey.giveMeBuilder(Generate.class);

2-1. Alter field size

generateBuilder.size("values", 5);
generateBuilder.sizeExp(Generate::values, 5);

2-2. Alter field n-th element size

generateBuilder.size("values[n]", 5);
generateBuilder.sizeExp(Generate::values[n], 5);

2-3. Alter field all elements size

generateBuilder.size("values[*]", 5);
generateBuilder.sizeExp(Generate::values["*"], 5);