public class JUnitUtilities extends Object
| Constructor and Description |
|---|
JUnitUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> void |
assertListStartsWith(List<T> expected,
List<T> actual,
Function<T,R> function)
Tests whether the expected list is the prefix of the actual list, where equality of elements is defined by getting the same
output by the given function.
|
static <T,U,R> void |
assertListStartsWith(List<T> expected,
List<U> actual,
Function<T,R> functionExpected,
Function<U,R> functionActual)
Tests whether the expected list is the prefix of the actual list, where equality of elements is defined by the given functions.
|
public static <T,R> void assertListStartsWith(List<T> expected, List<T> actual, Function<T,R> function)
expected - an expected listactual - an actual listfunction - a function that converts elements into something.public static <T,U,R> void assertListStartsWith(List<T> expected, List<U> actual, Function<T,R> functionExpected, Function<U,R> functionActual)
expected - an expected listactual - an actual listfunctionExpected - a function that converts the elements of the expected list into something.functionActual - a function that converts the elements of the actual list into something.Copyright © 2016. All rights reserved.