Search in sources :

Example 6 with Pet

use of com.baeldung.petstore.client.model.Pet in project tutorials by eugenp.

the class PetApiTest method updatePetTest.

/**
 * Update an existing pet
 *
 * @throws ApiException
 *          if the Api call fails
 */
@Test
public void updatePetTest() {
    Pet body = null;
    api.updatePet(body);
// TODO: test validations
}
Also used : Pet(com.baeldung.petstore.client.model.Pet) Test(org.junit.Test)

Aggregations

Pet (com.baeldung.petstore.client.model.Pet)6 Test (org.junit.Test)3 ParameterizedTypeReference (org.springframework.core.ParameterizedTypeReference)3 HttpHeaders (org.springframework.http.HttpHeaders)3 MediaType (org.springframework.http.MediaType)3 LinkedMultiValueMap (org.springframework.util.LinkedMultiValueMap)3 HttpClientErrorException (org.springframework.web.client.HttpClientErrorException)3 ArrayList (java.util.ArrayList)2 List (java.util.List)2 HashMap (java.util.HashMap)1