Search in sources :

Example 16 with Setting

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());
}
Also used : Setting(org.liberty.android.fantastischmemo.entity.Setting) SmallTest(android.support.test.filters.SmallTest) AbstractExistingDBTest(org.liberty.android.fantastischmemo.test.AbstractExistingDBTest) Test(org.junit.Test) SmallTest(android.support.test.filters.SmallTest)

Example 17 with Setting

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());
}
Also used : Setting(org.liberty.android.fantastischmemo.entity.Setting) SmallTest(android.support.test.filters.SmallTest) AbstractExistingDBTest(org.liberty.android.fantastischmemo.test.AbstractExistingDBTest) Test(org.junit.Test) SmallTest(android.support.test.filters.SmallTest)

Example 18 with Setting

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());
}
Also used : Setting(org.liberty.android.fantastischmemo.entity.Setting) SmallTest(android.support.test.filters.SmallTest) AbstractExistingDBTest(org.liberty.android.fantastischmemo.test.AbstractExistingDBTest) Test(org.junit.Test) SmallTest(android.support.test.filters.SmallTest)

Example 19 with Setting

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());
}
Also used : Setting(org.liberty.android.fantastischmemo.entity.Setting) SmallTest(android.support.test.filters.SmallTest) AbstractExistingDBTest(org.liberty.android.fantastischmemo.test.AbstractExistingDBTest) Test(org.junit.Test) SmallTest(android.support.test.filters.SmallTest)

Example 20 with Setting

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());
}
Also used : Setting(org.liberty.android.fantastischmemo.entity.Setting) SmallTest(android.support.test.filters.SmallTest) AbstractExistingDBTest(org.liberty.android.fantastischmemo.test.AbstractExistingDBTest) Test(org.junit.Test) SmallTest(android.support.test.filters.SmallTest)

Aggregations

Setting (org.liberty.android.fantastischmemo.entity.Setting)23 SmallTest (android.support.test.filters.SmallTest)21 Test (org.junit.Test)21 AbstractExistingDBTest (org.liberty.android.fantastischmemo.test.AbstractExistingDBTest)21 GestureOverlayView (android.gesture.GestureOverlayView)1 Bundle (android.os.Bundle)1 FragmentTransaction (android.support.v4.app.FragmentTransaction)1 View (android.view.View)1 TextView (android.widget.TextView)1 SQLException (java.sql.SQLException)1 ArrayList (java.util.ArrayList)1 Category (org.liberty.android.fantastischmemo.entity.Category)1