@Test public void testBuildWeakWizard() { final Character character = CharacterStepBuilder.newBuilder() .name("Merlin") .wizardClass("alchemist") .withSpell("poison") .noAbilities() .build(); assertEquals("Merlin", character.getName()); assertEquals("alchemist", character.getWizardClass()); assertEquals("poison", character.getSpell()); assertNull(character.getAbilities()); assertNotNull(character.toString()); }
public static NameStep newBuilder() { return new CharacterSteps(); }
CharacterStepBuilder { public static NameStep newBuilder() { return new CharacterSteps(); } }
CharacterStepBuilder { public static NameStep newBuilder() { return new CharacterSteps(); } private  CharacterStepBuilder(); }
CharacterStepBuilder { public static NameStep newBuilder() { return new CharacterSteps(); } private  CharacterStepBuilder(); static NameStep newBuilder(); }
CharacterStepBuilder { public static NameStep newBuilder() { return new CharacterSteps(); } private  CharacterStepBuilder(); static NameStep newBuilder();  }