Code example for InstrumentationTestSuite

Methods: addTestSuite

0
    public boolean mWifiOnlyFlag = false;
    public String mTestSsid = null;
 
    @Override 
    public TestSuite getAllTests() {
        TestSuite suite = new InstrumentationTestSuite(this);
        suite.addTestSuite(ConnectivityManagerMobileTest.class);
        suite.addTestSuite(WifiConnectionTest.class);
        return suite;
    } 
 
    @Override 
    public ClassLoader getLoader() {
        return ConnectivityManagerTestRunner.class.getClassLoader();
    } 
 
    @Override 
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        String testSSID = (String) icicle.get("ssid");
        if (testSSID != null) {