Created
April 15, 2022 14:11
-
-
Save henesgokdag/26ff15092503833994d927c5fa47fd18 to your computer and use it in GitHub Desktop.
shouldNotCreateOrderWhenPeopleIsDarthVader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void shouldNotCreateOrderWhenPeopleIsDarthVader() throws JsonProcessingException { | |
//given | |
OrderRequest orderRequest = easyRandom.nextObject(OrderRequest.class); | |
mockGetPeople(orderRequest,true); | |
//when | |
ErrorResponse orderResponse = orderApiService.createOrder(orderRequest,checkStatusCodeBadRequest()).as(ErrorResponse.class); | |
//then | |
assertEquals(orderResponse.getMessage(),"Darth Vader cannot create an order."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment