'exepcted'->'expected'
'expectedVisibilty'->'expectedVisibility'
This commit is contained in:
靳阳 2017-12-12 20:40:16 +08:00 committed by GitHub
parent 4b1650fbde
commit 176bb85f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,13 +81,13 @@ public class CommandTest {
* @param goblin a goblin object whose state is to be verified against other parameters
* @param expectedName expectedName of the goblin
* @param expectedSize expected size of the goblin
* @param expectedVisibilty exepcted visibility of the goblin
* @param expectedVisibility expected visibility of the goblin
*/
private void verifyGoblin(Goblin goblin, String expectedName, Size expectedSize,
Visibility expectedVisibilty) {
Visibility expectedVisibility) {
assertEquals("Goblin's name must be same as expectedName", expectedName, goblin.toString());
assertEquals("Goblin's size must be same as expectedSize", expectedSize, goblin.getSize());
assertEquals("Goblin's visibility must be same as expectedVisibility", expectedVisibilty,
assertEquals("Goblin's visibility must be same as expectedVisibility", expectedVisibility,
goblin.getVisibility());
}
}