FileDocCategorySizeDatePackage
InstrumentationTest.javaAPI DocAndroid 5.1 API1192Thu Mar 12 22:22:12 GMT 2015android.app

InstrumentationTest

public class InstrumentationTest extends android.test.InstrumentationTestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestSendStatus()
Simple stress test for {@link Instrumentation#sendStatus(int, android.os.Bundle)}, to ensure it can handle many rapid calls without failing.

        for (int i = 0; i < 10000; i++) {
            Bundle bundle = new Bundle();
            bundle.putInt("iterations", i);
            getInstrumentation().sendStatus(-1, bundle);
        }