Class AbstractWebTest

java.lang.Object
net.avcompris.commons3.web.it.utils.AbstractWebTest

public abstract class AbstractWebTest extends Object
  • Constructor Details

    • AbstractWebTest

      public AbstractWebTest()
  • Method Details

    • setUpRestAssured

      @BeforeEach public final void setUpRestAssured() throws Exception
      Use the "@RestAssured" annotation set on the test class (e.g. AppInfoTest) to retrieve the env property to use for the API baseURL (e.g. "customers.baseURL"), and then call setUpRestAssured(String)
      Throws:
      Exception
    • setUpRestAssured

      public static void setUpRestAssured(String baseURL) throws IOException
      Set up Rest Assured with the env property to use for the API baseURL (e.g. "${customers.baseURL}"), which should have a value such as "http://localhost:8080/api/v1". Please use ExpressionUtils.process(String) if you want to process an expression that uses variables.
      Throws:
      IOException