forked from loafle/openapi-generator-original
Fix test of updatePetWithForm for Android Petstore sample
This commit is contained in:
parent
e068ad4494
commit
db9ca1a485
@ -100,11 +100,11 @@ public class PetApiTest {
|
|||||||
api.addPet(pet);
|
api.addPet(pet);
|
||||||
|
|
||||||
Pet fetched = api.getPetById(pet.getId());
|
Pet fetched = api.getPetById(pet.getId());
|
||||||
|
assertEquals("frank", fetched.getName());
|
||||||
|
|
||||||
api.updatePetWithForm(String.valueOf(fetched.getId()), "furt", null);
|
api.updatePetWithForm(String.valueOf(fetched.getId()), "furt", null);
|
||||||
Pet updated = api.getPetById(fetched.getId());
|
Pet updated = api.getPetById(fetched.getId());
|
||||||
|
assertEquals("furt", updated.getName());
|
||||||
assertEquals(updated.getName(), fetched.getName());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user