File tree 1 file changed +3
-3
lines changed
java/client/test/org/openqa/selenium/environment/webserver 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ public class AppServerTest {
49
49
private static WebDriver driver ;
50
50
51
51
@ BeforeClass
52
- public static void startDriver () throws Throwable {
52
+ public static void startDriver () {
53
53
driver = new WebDriverBuilder ().get ();
54
54
}
55
55
56
56
@ Before
57
- public void startServer () throws Throwable {
57
+ public void startServer () {
58
58
server = new JettyAppServer ();
59
59
server .start ();
60
60
}
@@ -132,7 +132,7 @@ public void uploadsFile() throws Throwable {
132
132
String FILE_CONTENTS = "Uploaded file" ;
133
133
File testFile = File .createTempFile ("webdriver" , "tmp" );
134
134
testFile .deleteOnExit ();
135
- Files .write ( FILE_CONTENTS , testFile , StandardCharsets .UTF_8 );
135
+ Files .asCharSink ( testFile , StandardCharsets .UTF_8 ). write ( FILE_CONTENTS );
136
136
137
137
driver .get (server .whereIs ("upload.html" ));
138
138
driver .findElement (By .id ("upload" )).sendKeys (testFile .getAbsolutePath ());
You can’t perform that action at this time.
0 commit comments