Package tests
Class BaseTest
java.lang.Object
tests.BaseTest
- Direct Known Subclasses:
AirportReferenceLocationTest,FlightInspirationTest,FlightOffersTest,SearchHotelsTest,ToursAndActivitiesTest,TransferOffersTest
Base test class for Amadeus API tests. Handles common setup like authentication, request logging,
and configuration. All test classes should extend this to inherit suite-level and per-method
setup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.logging.log4j.Loggerprotected static final ReadProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets up suite-wide RestAssured configuration before any tests run.voidUpdates the OAuth2 token before each test method to ensure valid authentication.
-
Field Details
-
readProperties
-
logger
protected org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
BaseTest
public BaseTest()
-
-
Method Details
-
setUpSuite
@BeforeSuite(alwaysRun=true) public void setUpSuite()Sets up suite-wide RestAssured configuration before any tests run. Adds logging filters and sets the base URI for all requests. -
updateToken
@BeforeMethod(alwaysRun=true) public void updateToken()Updates the OAuth2 token before each test method to ensure valid authentication. Sets the request specification with the latest token for all requests in the test.
-