Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit 93f6626

Browse files
author
Eduard Bolos
committed
Rename column name
1 parent 42db835 commit 93f6626

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

core/src/androidTest/java/novoda/lib/sqliteprovider/ContentProviderTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ContentProviderTest extends AndroidTestCase {
1515

1616
private static final String TABLE_NAME = "test";
1717
private static final String COLUMN_PRIMARY_KEY = "column_primary_key";
18-
private static final String COLUMN2 = "column2";
18+
private static final String ANY_COLUMN = "any_column";
1919

2020
public ContentProviderTest() {
2121
super();
@@ -33,7 +33,7 @@ public void test_GivenATableWithData_When_UpdatingNonexistentRow_Then_NumberOfAf
3333
givenATableWithData();
3434

3535
ContentValues values = new ContentValues(1);
36-
values.put(COLUMN2, 1);
36+
values.put(ANY_COLUMN, 1);
3737

3838
int numRows = new ExtendedSQLiteOpenHelper(getContext())
3939
.getWritableDatabase()
@@ -55,11 +55,11 @@ private void givenATableWithData() throws IOException {
5555
SQLiteDatabase db = helper.getWritableDatabase();
5656
db.execSQL("CREATE TABLE IF NOT EXISTS `" + TABLE_NAME + "` (" +
5757
"`" + COLUMN_PRIMARY_KEY + "` INTEGER PRIMARY KEY," +
58-
"`" + COLUMN2 + "` INTEGER UNIQUE)");
58+
"`" + ANY_COLUMN + "` INTEGER UNIQUE)");
5959

6060
ContentValues values = new ContentValues(2);
6161
values.put(COLUMN_PRIMARY_KEY, 1);
62-
values.put(COLUMN2, 1);
62+
values.put(ANY_COLUMN, 1);
6363
helper.getWritableDatabase().insert(TABLE_NAME, null, values);
6464
}
6565

0 commit comments

Comments
 (0)