Package tests

Class BaseTest

java.lang.Object
tests.BaseTest
Direct Known Subclasses:
AirportReferenceLocationTest, FlightInspirationTest, FlightOffersTest, SearchHotelsTest, ToursAndActivitiesTest, TransferOffersTest

public class BaseTest extends Object
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 Details

    • readProperties

      protected static final ReadProperties 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.