renamed HeroBuilder to Builder

This commit is contained in:
VarunVats9
2016-05-29 20:05:54 +05:30
parent f6649a4fed
commit 509de9782d
4 changed files with 17 additions and 17 deletions

View File

@ -39,7 +39,7 @@ public class HeroTest {
*/
@Test(expected = IllegalArgumentException.class)
public void testMissingProfession() throws Exception {
new Hero.HeroBuilder(null, "Sir without a job");
new Hero.Builder(null, "Sir without a job");
}
/**
@ -47,7 +47,7 @@ public class HeroTest {
*/
@Test(expected = IllegalArgumentException.class)
public void testMissingName() throws Exception {
new Hero.HeroBuilder(Profession.THIEF, null);
new Hero.Builder(Profession.THIEF, null);
}
/**
@ -57,7 +57,7 @@ public class HeroTest {
public void testBuildHero() throws Exception {
final String heroName = "Sir Lancelot";
final Hero hero = new Hero.HeroBuilder(Profession.WARRIOR, heroName)
final Hero hero = new Hero.Builder(Profession.WARRIOR, heroName)
.withArmor(Armor.CHAIN_MAIL)
.withWeapon(Weapon.SWORD)
.withHairType(HairType.LONG_CURLY)