forked from loafle/openapi-generator-original
Merge pull request #758 from xhh/fix-android-form-test
Fix test of updatePetWithForm for Android Petstore sample
This commit is contained in:
commit
6a336f2e1e
@ -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
|
||||
@ -152,4 +152,4 @@ public class PetApiTest {
|
||||
|
||||
return pet;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user