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