Package tests
Class BaseTest
java.lang.Object
tests.BaseTest
- Direct Known Subclasses:
AirportReferenceLocationTest
,FlightInspirationTest
,FlightOffersTest
,ToursAndActivitesTest
,TransferOffersTest
Base test class for Amadeus API tests.
Handles common setup like authentication, request logging, and configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.logging.log4j.Logger
protected static final ReadProperties
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an OAuth2 access token from the Amadeus API.void
Sets up the test suite configuration.
-
Field Details
-
readProperties
-
SECRET_KEY
-
logger
protected org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
BaseTest
public BaseTest()
-
-
Method Details
-
getOauth2Token
Gets an OAuth2 access token from the Amadeus API. Uses encrypted client credentials from configuration.- Returns:
- the OAuth2 access token
-
setUpSuite
@BeforeSuite public void setUpSuite()Sets up the test suite configuration. Configures RestAssured with logging filters, base URI, and OAuth2 authentication.
-