Code example for Intent

Methods: getComponentsetClassName

0
        assertSame(si.getIntentClass(), thisClass);
    } 
 
    @Test 
    public void testSetClassName() throws Exception { 
        Intent intent = new Intent();
        Class<? extends IntentTest> thisClass = getClass();
        intent.setClassName("package.name", thisClass.getName());
        assertSame(thisClass.getName(), intent.getComponent().getClassName());
        assertEquals("package.name", intent.getComponent().getPackageName());
    } 
 
    @Test 
    public void testSetClassThroughConstructor() throws Exception { 
        Intent intent = new Intent(new Activity(), getClass());
        assertEquals(shadowOf(intent).getIntentClass(), getClass());
    } 
 
    @Test 
    public void shouldSetFlags() throws Exception { 
        Intent intent = new Intent();