issue #333 review changes

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

No files matched your search

@@ -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());
}
}
}