Code example for MatrixCursor

Methods: moveToFirstaddRow

0
import java.util.Set; 
 
public class FolderPropertiesTests extends AndroidTestCase {
 
    private static Cursor buildCursor(String[] columns, Object... values) {
        MatrixCursor c = new MatrixCursor(columns, 1);
        c.addRow(values);
        c.moveToFirst();
        return c;
    } 
 
    /** 
     * Tests of the syncronization of array and types of the display folder names 
     */ 
    public void testGetDisplayName() { 
        Context context = getContext();
        FolderProperties fp = FolderProperties.getInstance(context);
 
        assertEquals(
                    context.getString(R.string.mailbox_name_display_inbox),
Stop searching for code, let great code find you!  Add Codota to your java IDE