File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/java/io/appium/java_client/plugin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818
1919import io .appium .java_client .TestUtils ;
2020import io .appium .java_client .plugins .storage .StorageClient ;
21+ import org .junit .jupiter .api .Assumptions ;
2122import org .junit .jupiter .api .BeforeEach ;
2223import org .junit .jupiter .api .Test ;
2324
2627
2728import static org .junit .jupiter .api .Assertions .assertEquals ;
2829import static org .junit .jupiter .api .Assertions .assertTrue ;
29- import static org .junit .jupiter .api .Assumptions .assumeTrue ;
3030
3131public 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 ();
You can’t perform that action at this time.
0 commit comments