Skip to content

Commit 98dbcbb

Browse files
committed
Fixing silly oversights in test changes
1 parent 3d049bc commit 98dbcbb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/java/io/appium/java_client/pagefactory_tests/DesktopBrowserCompatibilityTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
import static io.appium.java_client.pagefactory.LocatorGroupStrategy.ALL_POSSIBLE;
3535
import static io.github.bonigarcia.wdm.WebDriverManager.chromedriver;
3636
import static java.time.Duration.ofSeconds;
37-
import static org.junit.jupiter.api.Assertions.*;
37+
import static org.junit.jupiter.api.Assertions.assertFalse;
38+
import static org.junit.jupiter.api.Assertions.assertNotEquals;
39+
import static org.junit.jupiter.api.Assertions.assertNull;
3840

3941
public class DesktopBrowserCompatibilityTest {
4042
private static final String HELLO_APPIUM_HTML =

src/test/java/io/appium/java_client/pagefactory_tests/widget/tests/combined/CombinedAppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void checkThatWidgetsAreCreatedCorrectly(AbstractApp app, WebDriver driver,
6060
assertThat("Expected widget class was " + widgetClass.getName(),
6161
app.getWidget().getSelfReference().getClass(),
6262
equalTo(widgetClass));
63-
assertThat(app.getWidget().getSelfReference().getClass(),
63+
assertThat(app.getWidget().getSelfReference(),
6464
Matchers.instanceOf(WebElement.class));
6565

6666
List<Class<?>> classes = app.getWidgets().stream().map(abstractWidget -> abstractWidget

0 commit comments

Comments
 (0)