APIPublisherUtil { public static String getApiEndpointUrl(String context) { return getServerBaseUrl() + context; }  static String getServerBaseUrl(); static String getApiEndpointUrl(String context); static APIConfig buildApiConfig(ServletContext servletContext, APIResourceConfiguration apiDef); static String getSwaggerDefinition(APIConfig apiConfig); static void setResourceAuthTypes(ServletContext servletContext, APIConfig apiConfig); static final String API_VERSION_PARAM; }
@Test(description = "test the method getApiEndpointUrl") public void testGetApiEndpointUrl() { String context = "/reboot"; String url = getApiEndpointUrl(context); Assert.assertEquals(url, "https: "is not same as actual url"); }