use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionTextColor.
@SmallTest
@Test
public void testQuestionTextColor() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionTextColor(Color.RED);
Setting savedSetting = setSetting(setting);
assertEquals(Color.RED, (int) savedSetting.getQuestionTextColor());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testDisplayInHTML.
@SmallTest
@Test
public void testDisplayInHTML() throws Exception {
Setting setting = getCurrentSetting();
setting.setDisplayInHTMLEnum(EnumSet.of(Setting.CardField.NOTE, Setting.CardField.ANSWER));
Setting savedSetting = setSetting(setting);
assertEquals(EnumSet.of(Setting.CardField.NOTE, Setting.CardField.ANSWER), savedSetting.getDisplayInHTMLEnum());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionField.
@SmallTest
@Test
public void testQuestionField() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionFieldEnum(EnumSet.of(Setting.CardField.NOTE, Setting.CardField.ANSWER));
Setting savedSetting = setSetting(setting);
assertEquals(EnumSet.of(Setting.CardField.NOTE, Setting.CardField.ANSWER), savedSetting.getQuestionFieldEnum());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerAudio.
@SmallTest
@Test
public void testAnswerAudio() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerAudio("DE");
Setting savedSetting = setSetting(setting);
assertEquals("DE", savedSetting.getAnswerAudio());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQARatio.
@SmallTest
@Test
public void testQARatio() throws Exception {
Setting setting = getCurrentSetting();
setting.setQaRatio(70);
Setting savedSetting = setSetting(setting);
assertEquals(70, (int) savedSetting.getQaRatio());
}
Aggregations