use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionFontSize.
@SmallTest
@Test
public void testQuestionFontSize() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionFontSize(50);
Setting savedSetting = setSetting(setting);
assertEquals(50, (int) savedSetting.getQuestionFontSize());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerBackgroundColor.
@SmallTest
@Test
public void testAnswerBackgroundColor() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerBackgroundColor(Color.RED);
Setting savedSetting = setSetting(setting);
assertEquals(Color.RED, (int) savedSetting.getAnswerBackgroundColor());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionFont.
@SmallTest
@Test
public void testQuestionFont() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionFont("/sdcard/font1.ttf");
Setting savedSetting = setSetting(setting);
assertEquals("/sdcard/font1.ttf", savedSetting.getQuestionFont());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionTextAlign.
@SmallTest
@Test
public void testQuestionTextAlign() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionTextAlign(Setting.Align.RIGHT);
Setting savedSetting = setSetting(setting);
assertEquals(Setting.Align.RIGHT, savedSetting.getQuestionTextAlign());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionAudio.
@SmallTest
@Test
public void testQuestionAudio() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionAudio("DE");
Setting savedSetting = setSetting(setting);
assertEquals("DE", savedSetting.getQuestionAudio());
}
Aggregations