Fix test of updatePetWithForm for Android Petstore sample

This commit is contained in:
xhh 2015-05-19 15:42:29 +08:00
parent e068ad4494
commit db9ca1a485

View File

@ -100,11 +100,11 @@ public class PetApiTest {
api.addPet(pet);
Pet fetched = api.getPetById(pet.getId());
assertEquals("frank", fetched.getName());
api.updatePetWithForm(String.valueOf(fetched.getId()), "furt", null);
Pet updated = api.getPetById(fetched.getId());
assertEquals(updated.getName(), fetched.getName());
assertEquals("furt", updated.getName());
}
@Test