Search in sources :

Example 11 with Setting

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());
}
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 12 with Setting

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());
}
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 13 with Setting

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());
}
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 14 with Setting

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());
}
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 15 with Setting

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());
}
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