am 74f259a7: Add moreKeys helper method for unit test
* commit '74f259a74ee600d742072361d074493f892eb1b7': Add moreKeys helper method for unit testmain
commit
06384aea21
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue