This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':downloadAllure'. | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:205) | |
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263) | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:203) | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:184) | |
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114) | |
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) | |
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) | |
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.appium.java_client.service.local.AppiumDriverLocalService | |
import io.appium.java_client.service.local.AppiumServiceBuilder | |
import io.appium.java_client.service.local.flags.GeneralServerFlag | |
import org.openqa.selenium.remote.DesiredCapabilities | |
@SuppressWarnings("GrMethodMayBeStatic") | |
class LocalAppiumServer { | |
private LocalAppiumServer() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StepProxy<T> : RealProxy | |
{ | |
private readonly T _decorated; | |
public StepProxy(T decorated) : base(typeof(T)) | |
{ | |
_decorated = decorated; | |
} | |
public override IMessage Invoke(IMessage msg) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Parent<T> | |
{ | |
public abstract T Magic(); | |
} | |
public class Child : Parent<Child> | |
{ | |
public override Child Magic() | |
{ | |
Console.WriteLine("child class"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static Map<Long, AppiumDriver> driverContainer = new ConcurrentHashMap<>(25) | |
static AppiumDriver getDriver() { | |
AppiumDriver driver = driverContainer.get(Thread.currentThread().id) | |
if (driver != null && isAlive(driver)) { | |
return driver | |
} | |
return byConfig() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FileParameters("classpath:registrationData.csv") | |
@Test | |
public void signUpUser(Strung email, String login, String password, boolean valid) { | |
assertThat(new User().signUp(email, login, password), is(valid)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(JUnitParamsRunner.class) | |
public class PersonTest { | |
@Parameters({ "17, false", "22, true" }) | |
@Test | |
public void personIsAdult(int age, boolean valid) { | |
assertThat(new Person(age).isAdult(), is(valid)); | |
} | |
} |