Add moreKeys helper method for unit test

Bug: 13017434
Change-Id: Icfaa4093686e2d8dec00d5acce894bfc6a2474b7
main
Tadashi G. Takaoka 2014-03-14 15:53:26 +09:00
parent e06eb8cff4
commit 74f259a74e
2 changed files with 12 additions and 0 deletions

View File

@ -76,6 +76,12 @@ public abstract class AbstractLayoutBase {
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},
// {@link ExpectedKey} array, and {@link String}.
public static ExpectedKey[] joinKeys(final Object ... keys) {

View File

@ -83,6 +83,12 @@ abstract class LayoutTestsBase extends KeyboardLayoutSetTestsBase {
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},
// {@link ExpectedKey} array, and {@link String}.
static ExpectedKey[] joinKeys(final Object ... keys) {