Lines Matching refs:columns
50 * Set up basic columns and cursor for the tests
148 * array) but it's OK if the physical structure of the cursor changes (columns rearranged).
155 // check columns of original - mFrom and mTo should line up
156 int[] columns = ca.getConvertedFrom();
157 assertEquals(columns[0], 0);
158 assertEquals(columns[1], 1);
160 // Now make a new cursor with similar data but rearrange the columns
166 // check columns to see if rearrangement tracked (should be swapped now)
167 columns = ca.getConvertedFrom();
168 assertEquals(columns[0], 1);
169 assertEquals(columns[1], 0);
194 // check columns of original - mFrom and mTo should line up
195 int[] columns = ca.getConvertedFrom();
196 assertEquals(2, columns.length);
197 assertEquals(0, columns[0]);
198 assertEquals(1, columns[1]);
221 int[] columns = ca.getConvertedFrom();
222 assertEquals(1, columns.length);
223 assertEquals(0, columns[0]);
234 columns = ca.getConvertedFrom();
235 assertEquals(1, columns.length);
236 assertEquals(1, columns[0]);
242 private static MatrixCursor createCursor(String[] columns, ArrayList<ArrayList> list) {
243 MatrixCursor cursor = new MatrixCursor(columns, list.size());