From aa232de51a02e877cb15cf4d928c19f20ff318f8 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Wed, 30 Aug 2017 17:58:19 +0100 Subject: [PATCH] Remove junit dependency from SlowLoadableComponent --- java/client/src/org/openqa/selenium/support/ui/BUCK | 1 - .../org/openqa/selenium/support/ui/SlowLoadableComponent.java | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/java/client/src/org/openqa/selenium/support/ui/BUCK b/java/client/src/org/openqa/selenium/support/ui/BUCK index a70a4bb74291a..955a86e60a64d 100644 --- a/java/client/src/org/openqa/selenium/support/ui/BUCK +++ b/java/client/src/org/openqa/selenium/support/ui/BUCK @@ -19,7 +19,6 @@ java_library(name = 'components', deps = [ ':clock', '//java/client/src/org/openqa/selenium:selenium', - '//third_party/java/junit:junit', ], visibility = ['PUBLIC'], ) diff --git a/java/client/src/org/openqa/selenium/support/ui/SlowLoadableComponent.java b/java/client/src/org/openqa/selenium/support/ui/SlowLoadableComponent.java index 2f427512ef86f..6f6633fbb936f 100644 --- a/java/client/src/org/openqa/selenium/support/ui/SlowLoadableComponent.java +++ b/java/client/src/org/openqa/selenium/support/ui/SlowLoadableComponent.java @@ -18,7 +18,6 @@ package org.openqa.selenium.support.ui; import static java.util.concurrent.TimeUnit.SECONDS; -import static org.junit.Assert.fail; /** @@ -91,7 +90,7 @@ private void waitFor() { try { Thread.sleep(sleepFor()); } catch (InterruptedException e) { - fail(e.getMessage()); + throw new AssertionError(e); } }