Search in sources :

Example 76 with SmallTest

use of android.support.test.filters.SmallTest 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)

Example 77 with SmallTest

use of android.support.test.filters.SmallTest 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());
}
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 78 with SmallTest

use of android.support.test.filters.SmallTest 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());
}
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 79 with SmallTest

use of android.support.test.filters.SmallTest 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());
}
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 80 with SmallTest

use of android.support.test.filters.SmallTest 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());
}
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

SmallTest (android.support.test.filters.SmallTest)252 Test (org.junit.Test)137 AbstractExistingDBTest (org.liberty.android.fantastischmemo.test.AbstractExistingDBTest)86 Parcel (android.os.Parcel)48 TimeBase (com.android.internal.os.BatteryStatsImpl.TimeBase)45 Card (org.liberty.android.fantastischmemo.entity.Card)43 CardDao (org.liberty.android.fantastischmemo.dao.CardDao)37 Setting (org.liberty.android.fantastischmemo.entity.Setting)21 Binder (android.os.Binder)20 Category (org.liberty.android.fantastischmemo.entity.Category)17 AbstractPreferencesTest (org.liberty.android.fantastischmemo.test.AbstractPreferencesTest)17 LearningData (org.liberty.android.fantastischmemo.entity.LearningData)15 UiThreadTest (android.support.test.annotation.UiThreadTest)14 CategoryDao (org.liberty.android.fantastischmemo.dao.CategoryDao)13 LocaleList (android.os.LocaleList)10 Option (org.liberty.android.fantastischmemo.entity.Option)9 QueueManager (org.liberty.android.fantastischmemo.queue.QueueManager)9 ContentResolver (android.content.ContentResolver)8 Cursor (android.database.Cursor)8 OnTickListener (com.tmall.wireless.tangram.support.TimerSupport.OnTickListener)8