1415161718192021222324
public class HeadTest { @Test public void test() { MouthList mouths = MouthFactory.createList(MouthFactory.width(10).height(5).color("red"), MouthFactory.width(15).height(5).color("blue")).asMouthList(MouthSize.SMALL); NoseListCreator noses = Nose.createList(Nose.noseDescription("sd").details("")); Head head = Head .headWeightInGrams(200) .leftEye(Eye.eyeWeightInGrams(50).color(1))
9101112131415
private final MouthList mouths; public Head(HeadState state, HeadStateBuilder stateBuilder) { super(state, stateBuilder); mouths = new MouthList(state.getMouths(), MouthSize.SMALL); }