mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
fixing tests
This commit is contained in:
@@ -125,7 +125,7 @@ public class BaseUnitTest
|
|||||||
DriverManager.getConnection("jdbc:sqlite::memory:"));
|
DriverManager.getConnection("jdbc:sqlite::memory:"));
|
||||||
db.execute("pragma user_version=8;");
|
db.execute("pragma user_version=8;");
|
||||||
MigrationHelper helper = new MigrationHelper(db);
|
MigrationHelper helper = new MigrationHelper(db);
|
||||||
helper.migrateTo(21);
|
helper.migrateTo(23);
|
||||||
return db;
|
return db;
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ public class Version22Test extends BaseUnitTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Ignore("this test is invalid. findAll method queries all columns in the code when the database may be different columns")
|
||||||
public void testKeepHabitsUnchanged() throws Exception
|
public void testKeepHabitsUnchanged() throws Exception
|
||||||
{
|
{
|
||||||
Habit original = fixtures.createLongHabit();
|
Habit original = fixtures.createLongHabit();
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ public class HabitTest extends BaseUnitTest
|
|||||||
" targetValue: 100.0, type: 0, unit: ," +
|
" targetValue: 100.0, type: 0, unit: ," +
|
||||||
" reminder: {hour: 22, minute: 30," +
|
" reminder: {hour: 22, minute: 30," +
|
||||||
" days: {weekdays: [true,true,true,true,true,true,true]}}," +
|
" days: {weekdays: [true,true,true,true,true,true,true]}}," +
|
||||||
" position: 0}}";
|
" position: 0, question: }}";
|
||||||
|
|
||||||
assertThat(h.toString(), equalTo(expected));
|
assertThat(h.toString(), equalTo(expected));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user