@Test public void testBuildPoorWarrior() { final Character character = CharacterStepBuilder.newBuilder() .name("Poor warrior") .fighterClass("none") .noWeapon() .build(); assertEquals("Poor warrior", character.getName()); assertEquals("none", character.getFighterClass()); assertNull(character.getWeapon()); 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();  }