Skip to content

Commit 96c5bba

Browse files
put to beforeall
1 parent d281da3 commit 96c5bba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/io/appium/java_client/plugin/StorageTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import io.appium.java_client.TestUtils;
2020
import io.appium.java_client.plugins.storage.StorageClient;
21+
import org.junit.jupiter.api.Assumptions;
2122
import org.junit.jupiter.api.BeforeEach;
2223
import org.junit.jupiter.api.Test;
2324

@@ -26,22 +27,21 @@
2627

2728
import static org.junit.jupiter.api.Assertions.assertEquals;
2829
import static org.junit.jupiter.api.Assertions.assertTrue;
29-
import static org.junit.jupiter.api.Assumptions.assumeTrue;
3030

3131
public class StorageTest {
3232
private StorageClient storageClient;
3333

3434
@BeforeEach
3535
void before() throws MalformedURLException {
36+
// These tests assume Appium server with storage plugin is already running
37+
// at the given baseUrl
38+
Assumptions.assumeFalse(TestUtils.isCiEnv());
3639
storageClient = new StorageClient(new URL("http://127.0.0.1:4723"));
3740
storageClient.reset();
3841
}
3942

4043
@Test
4144
void shouldBeAbleToPerformBasicStorageActions() {
42-
// This test assumes Appium server with storage plugin is already running
43-
// at the given baseUrl
44-
assumeTrue(!TestUtils.isCiEnv());
4545
assertTrue(storageClient.list().isEmpty());
4646
var name = "hello appium - saved page.htm";
4747
var testFile = TestUtils.resourcePathToAbsolutePath("html/" + name).toFile();

0 commit comments

Comments
 (0)