Search in sources :

Example 1 with Setting

use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.

the class DatabaseUtilsTest method testGetDefaultSetting.

@SmallTest
@Test
public void testGetDefaultSetting() throws Exception {
    Setting setting = databaseUtil.readDefaultSetting();
    assertNotNull(setting);
}
Also used : Setting(org.liberty.android.fantastischmemo.entity.Setting) Test(org.junit.Test) SmallTest(android.support.test.filters.SmallTest) AbstractExistingDBTest(org.liberty.android.fantastischmemo.test.AbstractExistingDBTest) SmallTest(android.support.test.filters.SmallTest)

Example 2 with Setting

use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.

the class SettingTest method testCardStyle.

@SmallTest
@Test
public void testCardStyle() throws Exception {
    Setting setting = getCurrentSetting();
    setting.setCardStyle(Setting.CardStyle.DOUBLE_SIDED);
    Setting savedSetting = setSetting(setting);
    assertEquals(Setting.CardStyle.DOUBLE_SIDED, savedSetting.getCardStyle());
}
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 3 with Setting

use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.

the class SettingTest method testQuestionBackgroundColor.

@SmallTest
@Test
public void testQuestionBackgroundColor() throws Exception {
    Setting setting = getCurrentSetting();
    setting.setQuestionBackgroundColor(Color.RED);
    Setting savedSetting = setSetting(setting);
    assertEquals(Color.RED, (int) savedSetting.getQuestionBackgroundColor());
}
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 4 with Setting

use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.

the class SettingTest method testSeparatorColor.

@SmallTest
@Test
public void testSeparatorColor() throws Exception {
    Setting setting = getCurrentSetting();
    setting.setSeparatorColor(Color.RED);
    Setting savedSetting = setSetting(setting);
    assertEquals(Color.RED, (int) savedSetting.getSeparatorColor());
}
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 5 with Setting

use of org.liberty.android.fantastischmemo.entity.Setting in project AnyMemo by helloworld1.

the class SettingTest method testAnswerFont.

@SmallTest
@Test
public void testAnswerFont() throws Exception {
    Setting setting = getCurrentSetting();
    setting.setAnswerFont("/sdcard/font1.ttf");
    Setting savedSetting = setSetting(setting);
    assertEquals("/sdcard/font1.ttf", savedSetting.getAnswerFont());
}
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