Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ testing {
dependencies {
implementation project()
implementation(sourceSets.test.output)
implementation('org.apache.commons:commons-lang3:3.22.0')
}

targets.configureEach {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.appium.java_client.android;

import org.apache.commons.lang3.time.DurationFormatUtils;
import org.junit.jupiter.api.Test;

import java.time.Duration;
Expand All @@ -26,8 +25,8 @@ public void verifyLogcatListenerCanBeAssigned() {
// This is needed for pushing some internal log messages
driver.runAppInBackground(Duration.ofSeconds(1));
assertTrue(messageSemaphore.tryAcquire(timeout.toMillis(), TimeUnit.MILLISECONDS),
String.format("Didn't receive any log message after %s timeout",
DurationFormatUtils.formatDuration(timeout.toMillis(), "H:mm:ss", true)));
String.format("Didn't receive any log message after %d:%02d:%02d timeout",
timeout.toHours(), timeout.toMinutesPart(), timeout.toSecondsPart()));
} catch (InterruptedException e) {
throw new IllegalStateException(e);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package io.appium.java_client.ios;

import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -70,7 +69,7 @@ public void dismissAlertTest() {
@Test
public void getAlertTextTest() {
ensureAlertPresence();
assertFalse(StringUtils.isBlank(driver.switchTo().alert().getText()));
assertFalse(driver.switchTo().alert().getText().isBlank());
}

private void ensureAlertPresence() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.appium.java_client.ios;

import org.apache.commons.lang3.time.DurationFormatUtils;
import org.junit.jupiter.api.Test;

import java.time.Duration;
Expand All @@ -26,8 +25,8 @@ public void verifySyslogListenerCanBeAssigned() {
// This is needed for pushing some internal log messages
driver.runAppInBackground(Duration.ofSeconds(1));
assertTrue(messageSemaphore.tryAcquire(timeout.toMillis(), TimeUnit.MILLISECONDS),
String.format("Didn't receive any log message after %s timeout",
DurationFormatUtils.formatDuration(timeout.toMillis(), "H:mm:ss", true)));
String.format("Didn't receive any log message after %d:%02d:%02d timeout",
timeout.toHours(), timeout.toMinutesPart(), timeout.toSecondsPart()));
} catch (InterruptedException e) {
throw new IllegalStateException(e);
} finally {
Expand Down
Loading