Merge "Rename base test class KeySpecParserTestsBase"

This commit is contained in:
Tadashi G. Takaoka 2014-02-05 08:16:15 +00:00 committed by Android (Google) Code Review
commit 258971daac
3 changed files with 7 additions and 3 deletions

View file

@ -21,7 +21,7 @@ import android.test.suitebuilder.annotation.SmallTest;
import com.android.inputmethod.latin.Constants;
@SmallTest
public final class KeySpecParserTests extends KeySpecParserBase {
public final class KeySpecParserTests extends KeySpecParserTestsBase {
@Override
protected void assertParser(final String message, final String keySpec,
final String expectedLabel, final String expectedOutputText, final int expectedIcon,

View file

@ -30,7 +30,7 @@ import com.android.inputmethod.latin.utils.RunInLocale;
import java.util.Locale;
abstract class KeySpecParserBase extends AndroidTestCase {
abstract class KeySpecParserTestsBase extends AndroidTestCase {
private final static Locale TEST_LOCALE = Locale.ENGLISH;
protected final KeyboardCodesSet mCodesSet = new KeyboardCodesSet();
protected final KeyboardTextsSet mTextsSet = new KeyboardTextsSet();
@ -251,8 +251,12 @@ abstract class KeySpecParserBase extends AndroidTestCase {
}
public void testFormatError() {
assertParserError("Null spec", null, null,
null, ICON_UNDEFINED, CODE_UNSPECIFIED);
assertParserError("Empty spec", "", null,
null, ICON_UNDEFINED, CODE_UNSPECIFIED);
assertParserError("Single bar", "|",
"|", null, ICON_UNDEFINED, '|');
assertParserError("Empty label with outputText", "|a",
null, "a", ICON_UNDEFINED, CODE_UNSPECIFIED);
assertParserError("Empty label with code", "|" + CODE_SETTINGS,

View file

@ -24,7 +24,7 @@ import java.util.Arrays;
import java.util.Locale;
@SmallTest
public final class MoreKeySpecTests extends KeySpecParserBase {
public final class MoreKeySpecTests extends KeySpecParserTestsBase {
@Override
protected void assertParser(final String message, final String moreKeySpec,
final String expectedLabel, final String expectedOutputText, final int expectedIconId,