File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
java/client/test/org/openqa/selenium/atoms Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ java_library(
18
18
name = "lib" ,
19
19
srcs = ["JavaScriptLoader.java" ],
20
20
deps = [
21
+ artifact ("org.assertj:assertj-core" ),
21
22
artifact ("com.google.guava:guava" ),
22
- artifact ("org.hamcrest:hamcrest" ),
23
23
artifact ("junit:junit" ),
24
24
],
25
25
)
Original file line number Diff line number Diff line change 18
18
package org .openqa .selenium .atoms ;
19
19
20
20
import static java .nio .charset .StandardCharsets .UTF_8 ;
21
- import static org .hamcrest .CoreMatchers .notNullValue ;
22
- import static org .junit .Assume .assumeThat ;
21
+ import static org .assertj .core .api .Assumptions .assumeThat ;
23
22
24
23
import com .google .common .io .Resources ;
25
24
@@ -34,9 +33,9 @@ private JavaScriptLoader() {} // Utility class.
34
33
35
34
static String loadResource (String resourcePath ) throws IOException {
36
35
URL resourceUrl = JavaScriptLoader .class .getResource (resourcePath );
37
- assumeThat (
38
- "Resource not found; are you running with `bazel test`? " + resourcePath ,
39
- resourceUrl , notNullValue () );
36
+ assumeThat (resourceUrl )
37
+ . isNotNull ()
38
+ . as ( "Resource not found; are you running with `bazel test`? " + resourcePath );
40
39
return Resources .toString (resourceUrl , UTF_8 );
41
40
}
42
41
}
You can’t perform that action at this time.
0 commit comments