issue #333 review changes

This commit is contained in:
Crossy147
2016-02-21 12:54:40 +01:00
parent 6ab9b36d59
commit cfd83b5753
3 changed files with 16 additions and 3 deletions

View File

@@ -93,9 +93,9 @@ public class FactoryMethodTest {
* @param expectedWeaponType expected WeaponType of the weapon
* @param clazz expected class of the weapon
*/
private void verifyWeapon(Weapon weapon, WeaponType expectedWeaponType, Class clazz) {
private void verifyWeapon(Weapon weapon, WeaponType expectedWeaponType, Class<?> clazz) {
assertTrue("Weapon must be an object of: " + clazz.getName(), clazz.isInstance(weapon));
assertEquals("Weapon must be of weaponType: " + clazz.getName(), expectedWeaponType,
weapon.getWeaponType());
}
}
}