Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reformat AdminConsoleIntegrationTest.java #12552

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,26 +63,27 @@ public void testApiHelp()
throws Exception {
// test controller
String response = sendGetRequest(getControllerBaseApiUrl() + "/help");
String expected = IOUtils
.toString(ControllerAdminApiApplication.class.getClassLoader().getResourceAsStream("api/index.html"), "UTF-8");
String expected =
IOUtils.toString(ControllerAdminApiApplication.class.getClassLoader().getResourceAsStream("api/index.html"),
"UTF-8");
Assert.assertEquals(response, expected);
// help and api map to the same content
response = sendGetRequest(getControllerBaseApiUrl() + "/api");
Assert.assertEquals(response, expected);

// test broker
response = sendGetRequest(getBrokerBaseApiUrl() + "/help");
expected = IOUtils
.toString(BrokerAdminApiApplication.class.getClassLoader().getResourceAsStream("api/index.html"), "UTF-8");
expected = IOUtils.toString(BrokerAdminApiApplication.class.getClassLoader().getResourceAsStream("api/index.html"),
"UTF-8");
Assert.assertEquals(response, expected);
// help and api map to the same content
response = sendGetRequest(getBrokerBaseApiUrl() + "/api");
Assert.assertEquals(response, expected);
String serverBaseApiUrl = "http://localhost:" + getServerAdminApiPort();
// test server
response = sendGetRequest(serverBaseApiUrl + "/help");
expected = IOUtils
.toString(BrokerAdminApiApplication.class.getClassLoader().getResourceAsStream("api/index.html"), "UTF-8");
expected = IOUtils.toString(BrokerAdminApiApplication.class.getClassLoader().getResourceAsStream("api/index.html"),
"UTF-8");
Assert.assertEquals(response, expected);

// help and api map to the same content
Expand Down
Loading