am 74f259a7: Add moreKeys helper method for unit test

* commit '74f259a74ee600d742072361d074493f892eb1b7':
  Add moreKeys helper method for unit test
main
Tadashi G. Takaoka 2014-03-13 23:58:07 -07:00 committed by Android Git Automerger
commit 06384aea21
2 changed files with 12 additions and 0 deletions

View File

@ -76,6 +76,12 @@ public abstract class AbstractLayoutBase {
return ExpectedKey.newInstance(label, code); return ExpectedKey.newInstance(label, code);
} }
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
// {@link ExpectedKey} array, and {@link String}.
public static ExpectedKey[] moreKeys(final Object ... moreKeys) {
return joinKeys(moreKeys);
}
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey}, // Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
// {@link ExpectedKey} array, and {@link String}. // {@link ExpectedKey} array, and {@link String}.
public static ExpectedKey[] joinKeys(final Object ... keys) { public static ExpectedKey[] joinKeys(final Object ... keys) {

View File

@ -83,6 +83,12 @@ abstract class LayoutTestsBase extends KeyboardLayoutSetTestsBase {
return AbstractLayoutBase.moreKey(label, outputText); return AbstractLayoutBase.moreKey(label, outputText);
} }
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
// {@link ExpectedKey} array, and {@link String}.
static ExpectedKey[] moreKeys(final Object ... moreKeys) {
return AbstractLayoutBase.joinKeys(moreKeys);
}
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey}, // Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
// {@link ExpectedKey} array, and {@link String}. // {@link ExpectedKey} array, and {@link String}.
static ExpectedKey[] joinKeys(final Object ... keys) { static ExpectedKey[] joinKeys(final Object ... keys) {