Skip to content

Commit a7db709

Browse files
committed
update tests
1 parent b859438 commit a7db709

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/amadeus/NamespaceTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,12 +793,13 @@ public void testFlightOrdersbyId() throws ResponseException {
793793
public void testTransferOffers() throws ResponseException {
794794
// Testing Transfer Offers
795795
Mockito.when(client.post("/v1/shopping/transfer-offers", (String) null))
796-
.thenReturn(singleResponse);
796+
.thenReturn(multiResponse);
797797
Mockito.when(client.post("/v1/shopping/transfer-offers", body))
798-
.thenReturn(singleResponse);
798+
.thenReturn(multiResponse);
799799
TransferOffers transferOffers = new TransferOffers(client);
800800
assertNotNull(transferOffers.post());
801801
assertNotNull(transferOffers.post(body));
802+
assertEquals(transferOffers.post().length, 2);
802803
}
803804

804805
}

0 commit comments

Comments
 (0)