Class ExtensionManagerClient


  • public class ExtensionManagerClient
    extends Object
    This class wraps the extension manager REST API and simplifies calling its endpoint methods:
    • Adds authentication header value and passes database connection parameters required by most requests.
    • Adds extension ID parameter for the extension under test to requests when required.
    • Optionally adds the current version of the extension under test to requests when required.
    The class also provides a convenient method assertRequestFails(Executable, Matcher, Matcher) for verifying that an API fails with expected error message and HTTP status code.