use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class DatabaseUtilsTest method testGetDefaultSetting.
@SmallTest
@Test
public void testGetDefaultSetting() throws Exception {
Setting setting = databaseUtil.readDefaultSetting();
assertNotNull(setting);
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testCardStyle.
@SmallTest
@Test
public void testCardStyle() throws Exception {
Setting setting = getCurrentSetting();
setting.setCardStyle(Setting.CardStyle.DOUBLE_SIDED);
Setting savedSetting = setSetting(setting);
assertEquals(Setting.CardStyle.DOUBLE_SIDED, savedSetting.getCardStyle());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionBackgroundColor.
@SmallTest
@Test
public void testQuestionBackgroundColor() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionBackgroundColor(Color.RED);
Setting savedSetting = setSetting(setting);
assertEquals(Color.RED, (int) savedSetting.getQuestionBackgroundColor());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testSeparatorColor.
@SmallTest
@Test
public void testSeparatorColor() throws Exception {
Setting setting = getCurrentSetting();
setting.setSeparatorColor(Color.RED);
Setting savedSetting = setSetting(setting);
assertEquals(Color.RED, (int) savedSetting.getSeparatorColor());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerFont.
@SmallTest
@Test
public void testAnswerFont() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerFont("/sdcard/font1.ttf");
Setting savedSetting = setSetting(setting);
assertEquals("/sdcard/font1.ttf", savedSetting.getAnswerFont());
}
Aggregations