MobSkillFactory throws exception instead of returning null
This commit is contained in:
@@ -61,10 +61,8 @@ class MobSkillFactoryTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldReturnNullForNonExistingMobSkill() {
|
||||
MobSkill mobSkill = MobSkillFactory.getMobSkill(MobSkillType.DEFENSE_UP, 1);
|
||||
|
||||
assertNull(mobSkill);
|
||||
void shouldThrowExceptionOnNonExisting() {
|
||||
assertThrows(IllegalArgumentException.class, () -> MobSkillFactory.getMobSkill(MobSkillType.DEFENSE_UP, 1));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user