Code example for Intent

Methods: getFlagssetFlags

0
        assertEquals(shadowOf(intent).getIntentClass(), getClass());
    } 
 
    @Test 
    public void shouldSetFlags() throws Exception { 
        Intent intent = new Intent();
        Intent self = intent.setFlags(1234);
        assertEquals(1234, intent.getFlags());
        assertSame(self, intent);
    } 
 
    @Test 
    public void shouldAddFlags() throws Exception { 
        Intent intent = new Intent();
        Intent self = intent.addFlags(4);
        self.addFlags(8);
        assertEquals(12, intent.getFlags());
        assertSame(self, intent);
    } 
 
    @Test