use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerTextColor.
@SmallTest
@Test
public void testAnswerTextColor() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerTextColor(Color.RED);
Setting savedSetting = setSetting(setting);
assertEquals(Color.RED, (int) savedSetting.getAnswerTextColor());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testQuestionAudioLocation.
@SmallTest
@Test
public void testQuestionAudioLocation() throws Exception {
Setting setting = getCurrentSetting();
setting.setQuestionAudioLocation("/sdcard/");
Setting savedSetting = setSetting(setting);
assertEquals("/sdcard/", savedSetting.getQuestionAudioLocation());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerAudioLocation.
@SmallTest
@Test
public void testAnswerAudioLocation() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerAudioLocation("/sdcard/");
Setting savedSetting = setSetting(setting);
assertEquals("/sdcard/", savedSetting.getAnswerAudioLocation());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerTextAlign.
@SmallTest
@Test
public void testAnswerTextAlign() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerTextAlign(Setting.Align.CENTER_LEFT);
Setting savedSetting = setSetting(setting);
assertEquals(Setting.Align.CENTER_LEFT, savedSetting.getAnswerTextAlign());
}
use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.
the class SettingTest method testAnswerField.
@SmallTest
@Test
public void testAnswerField() throws Exception {
Setting setting = getCurrentSetting();
setting.setAnswerFieldEnum(EnumSet.of(Setting.CardField.NOTE, Setting.CardField.ANSWER));
Setting savedSetting = setSetting(setting);
assertEquals(EnumSet.of(Setting.CardField.NOTE, Setting.CardField.ANSWER), savedSetting.getAnswerFieldEnum());
}
Aggregations