cucumber.api.android.CucumberInstrumentation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-android Show documentation
Show all versions of cucumber-android Show documentation
Android support for Cucumber-JVM
package cucumber.api.android;
import android.app.Instrumentation;
import android.os.Bundle;
/**
* A simple extension of the {@link android.app.Instrumentation} utilizing the {@link cucumber.api.android.CucumberInstrumentationCore}.
*/
public class CucumberInstrumentation extends Instrumentation {
/**
* The {@link cucumber.api.android.CucumberInstrumentationCore} which will run the actual logic using this {@link android.app.Instrumentation}
* implementation.
*/
private CucumberInstrumentationCore cucumberInstrumentationCore = new CucumberInstrumentationCore(this);
@Override
public void onCreate(final Bundle bundle) {
super.onCreate(bundle);
cucumberInstrumentationCore.create(bundle);
start();
}
@Override
public void onStart() {
cucumberInstrumentationCore.start();
}
}