Code example for Button

Methods: isEnabled

0
     */ 
    public void testGoodUri() { 
        Intent i = getTestIntent("eas://user:password@server.com");
        setActivityIntent(i);
        getActivityAndFields(); 
        assertTrue(mNextButton.isEnabled());
    } 
     
    // TODO Add tests for valid usernames in eas 
    // They would be <name> or <name>\<domain> or <name>/<domain> or a valid email address 
 
    /** 
     * No user is not OK - not enabled 
     */ 
    public void testBadUriNoUser() { 
        Intent i = getTestIntent("eas://:password@server.com");
        setActivityIntent(i);
        getActivityAndFields(); 
        assertFalse(mNextButton.isEnabled());
    }