Sha256: 91bec43b89db7761faadda39d74e23ebe90b4cc9159d60c53117a9a93c0cccbb
Contents?: true
Size: 975 Bytes
Versions: 13
Compression:
Stored size: 975 Bytes
Contents
package sh.calaba.instrumentationbackend; import java.lang.reflect.Method; import android.content.Context; import android.os.Bundle; import android.test.InstrumentationTestRunner; import sh.calaba.instrumentationbackend.actions.HttpServer; public class CalabashInstrumentationTestRunner extends InstrumentationTestRunner { @Override public void onCreate(Bundle arguments) { try { Context context = getTargetContext (); Class<?> c = Class.forName("mono.MonoPackageManager"); Method method = c.getDeclaredMethod ("LoadApplication", Context.class, String.class, String[].class); method.invoke (null, context, null, new String[]{context.getApplicationInfo ().sourceDir}); System.out.println("Calabash loaded Mono"); } catch (Exception e) { System.out.println("Calabash could not load Mono"); } // Start the HttpServer as soon as possible in a not-ready state HttpServer.instantiate(); super.onCreate(arguments); } }
Version data entries
13 entries across 13 versions & 1 rubygems