Skip to content

Commit

Permalink
[java] Fixing RemoteWebElementTest unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed May 27, 2022
1 parent f286267 commit bf6d4ac
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions java/test/org/openqa/selenium/remote/RemoteWebElementTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@

package org.openqa.selenium.remote;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.mockito.Mockito.mock;
import static org.openqa.selenium.remote.WebDriverFixture.echoCapabilities;
import static org.openqa.selenium.remote.WebDriverFixture.errorResponder;
import static org.openqa.selenium.remote.WebDriverFixture.exceptionResponder;
import static org.openqa.selenium.remote.WebDriverFixture.nullValueResponder;
import static org.openqa.selenium.remote.WebDriverFixture.valueResponder;
import static org.openqa.selenium.remote.WebDriverFixture.webDriverExceptionResponder;

import com.google.common.collect.ImmutableMap;

import org.junit.Test;
Expand All @@ -40,6 +30,16 @@
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.testing.UnitTests;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.mockito.Mockito.mock;
import static org.openqa.selenium.remote.WebDriverFixture.echoCapabilities;
import static org.openqa.selenium.remote.WebDriverFixture.errorResponder;
import static org.openqa.selenium.remote.WebDriverFixture.exceptionResponder;
import static org.openqa.selenium.remote.WebDriverFixture.nullValueResponder;
import static org.openqa.selenium.remote.WebDriverFixture.valueResponder;
import static org.openqa.selenium.remote.WebDriverFixture.webDriverExceptionResponder;

@Category(UnitTests.class)
public class RemoteWebElementTest {

Expand Down Expand Up @@ -298,7 +298,7 @@ public void canHandleGetLocationCommand() {
assertThat(fixture.element.getLocation()).isEqualTo(new Point(10, 20));

fixture.verifyCommands(
new CommandPayload(DriverCommand.GET_ELEMENT_LOCATION,
new CommandPayload(DriverCommand.GET_ELEMENT_RECT,
ImmutableMap.of("id", fixture.element.getId())));
}

Expand All @@ -311,7 +311,7 @@ public void canHandleGetSizeCommand() {

fixture.verifyCommands(
new CommandPayload(
DriverCommand.GET_ELEMENT_SIZE, ImmutableMap.of("id", fixture.element.getId())));
DriverCommand.GET_ELEMENT_RECT, ImmutableMap.of("id", fixture.element.getId())));
}

@Test
Expand Down

0 comments on commit bf6d4ac

Please sign in to comment.