Skip to content

Commit aa232de

Browse files
committedAug 30, 2017
Remove junit dependency from SlowLoadableComponent
1 parent 35f5909 commit aa232de

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎java/client/src/org/openqa/selenium/support/ui/BUCK

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ java_library(name = 'components',
1919
deps = [
2020
':clock',
2121
'//java/client/src/org/openqa/selenium:selenium',
22-
'//third_party/java/junit:junit',
2322
],
2423
visibility = ['PUBLIC'],
2524
)

‎java/client/src/org/openqa/selenium/support/ui/SlowLoadableComponent.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package org.openqa.selenium.support.ui;
1919

2020
import static java.util.concurrent.TimeUnit.SECONDS;
21-
import static org.junit.Assert.fail;
2221

2322

2423
/**
@@ -91,7 +90,7 @@ private void waitFor() {
9190
try {
9291
Thread.sleep(sleepFor());
9392
} catch (InterruptedException e) {
94-
fail(e.getMessage());
93+
throw new AssertionError(e);
9594
}
9695
}
9796

0 commit comments

Comments
 (0)
Please sign in to comment.