Fix #2058: Reformat a few Java files left for good (#2072)

This commit is contained in:
Alberto Miorin 2022-01-06 11:27:19 +01:00 committed by GitHub
parent 51c1228b2a
commit c0a0c04306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 18 deletions

View File

@ -66,8 +66,7 @@ public class WebhookResourceTest extends EntityResourceTest<Webhook> {
}
@Test
void post_webhookEnabledStateChange(TestInfo test)
throws URISyntaxException, IOException, InterruptedException {
void post_webhookEnabledStateChange(TestInfo test) throws URISyntaxException, IOException, InterruptedException {
//
// Create webhook in disabled state. It will not start webhook publisher
//

View File

@ -216,8 +216,7 @@ public class DashboardServiceResourceTest extends EntityResourceTest<DashboardSe
}
@Test
void delete_ExistentDashboardService_as_admin_200(TestInfo test)
throws HttpResponseException, URISyntaxException {
void delete_ExistentDashboardService_as_admin_200(TestInfo test) throws HttpResponseException, URISyntaxException {
Map<String, String> authHeaders = adminAuthHeaders();
DashboardService dashboardService = createEntity(create(test), authHeaders);
deleteEntity(dashboardService.getId(), authHeaders);

View File

@ -110,8 +110,7 @@ public class RoleResourceTest extends EntityResourceTest<Role> {
}
@Test
void patch_roleAttributes_as_non_admin_403(TestInfo test)
throws HttpResponseException, JsonProcessingException {
void patch_roleAttributes_as_non_admin_403(TestInfo test) throws HttpResponseException, JsonProcessingException {
// Create table without any attributes
Role role = createRole(create(test), adminAuthHeaders());
// Patching as a non-admin should is disallowed

View File

@ -229,8 +229,7 @@ public class TeamResourceTest extends EntityResourceTest<Team> {
// }
@Test
void patch_teamAttributes_as_non_admin_403(TestInfo test)
throws HttpResponseException, JsonProcessingException {
void patch_teamAttributes_as_non_admin_403(TestInfo test) throws HttpResponseException, JsonProcessingException {
// Create table without any attributes
Team team = createTeam(create(test), adminAuthHeaders());
// Patching as a non-admin should is disallowed

View File

@ -276,8 +276,7 @@ public class UserResourceTest extends EntityResourceTest<User> {
* @see TableResourceTest also tests GET user returns owns list
*/
@Test
void patch_userNameChange_as_another_user_401(TestInfo test)
throws HttpResponseException, JsonProcessingException {
void patch_userNameChange_as_another_user_401(TestInfo test) throws HttpResponseException, JsonProcessingException {
// Ensure username can't be changed using patch
User user =
createUser(
@ -305,8 +304,7 @@ public class UserResourceTest extends EntityResourceTest<User> {
}
@Test
void patch_userNameChange_as_same_user_200_ok(TestInfo test)
throws HttpResponseException, JsonProcessingException {
void patch_userNameChange_as_same_user_200_ok(TestInfo test) throws HttpResponseException, JsonProcessingException {
// Ensure username can't be changed using patch
User user =
createUser(

View File

@ -166,9 +166,7 @@ public class PaginationAndFilterTest {
Events.sendKeys(webDriver, By.cssSelector("[data-testid='searchBox']"), "dim_api_client");
Events.click(webDriver, By.cssSelector("[data-testid='data-name']"));
Thread.sleep(waitTime);
actions
.moveToElement(webDriver.findElement(By.xpath("//div[@data-testid='tag-conatiner']//span")))
.perform();
actions.moveToElement(webDriver.findElement(By.xpath("//div[@data-testid='tag-conatiner']//span"))).perform();
Events.click(webDriver, By.xpath("//div[@data-testid='tag-conatiner']//span"));
Events.click(webDriver, By.cssSelector("[data-testid='associatedTagName']"));
for (int i = 0; i <= 4; i++) {
@ -181,7 +179,10 @@ public class PaginationAndFilterTest {
Events.click(webDriver, By.cssSelector("[data-testid='checkbox'][id='shopify']"));
Thread.sleep(2000);
Object filteredResults = webDriver.findElements(By.xpath("//div[@data-testid='search-results']/div")).size();
String databaseCount = webDriver.findElement(By.xpath("//div[@data-testid='filter-container-shopify']//span[@data-testid='filter-count']")).getAttribute("innerHTML");
String databaseCount =
webDriver
.findElement(By.xpath("//div[@data-testid='filter-container-shopify']//span[@data-testid='filter-count']"))
.getAttribute("innerHTML");
Assert.assertEquals(databaseCount, filteredResults);
}

View File

@ -200,8 +200,8 @@ public class MyDataPageTest {
Events.click(webDriver, By.cssSelector("[data-testid='image']"));
Thread.sleep(2000);
try {
WebElement spaceSearch = wait.until(ExpectedConditions.presenceOfElementLocated(
By.cssSelector("[data-testid='Recently-Search- ']")));
WebElement spaceSearch =
wait.until(ExpectedConditions.presenceOfElementLocated(By.cssSelector("[data-testid='Recently-Search- ']")));
if (spaceSearch.isDisplayed()) {
throw new Exception("Spaces are captured in Recent Search");
}