mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 08:14:13 +00:00
issue #333 review changes
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user