mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-10 03:55:10 +00:00
[LANG-1568] Checktyle.
This commit is contained in:
parent
487f5887bb
commit
9273b557b7
@ -680,7 +680,9 @@ public void testBiFunctionAndThen() throws IOException {
|
||||
final FailableBiFunction<Object, Integer, Integer, IOException> failingBiFunctionTest = (t, u) -> {
|
||||
throw new IOException();
|
||||
};
|
||||
final FailableFunction<Object, Integer, IOException> failingFunction = t -> { throw new IOException(); };
|
||||
final FailableFunction<Object, Integer, IOException> failingFunction = t -> {
|
||||
throw new IOException();
|
||||
};
|
||||
final FailableBiFunction<Object, Integer, Integer, IOException> nopFailableBiFunction = FailableBiFunction
|
||||
.nop();
|
||||
final FailableFunction<Object, Integer, IOException> nopFailableFunction = FailableFunction.nop();
|
||||
@ -843,7 +845,9 @@ public void testFunctionAndThen() throws IOException {
|
||||
final Function<Object, Integer> nopFunction = t -> null;
|
||||
nopFunction.andThen(nopFunction);
|
||||
// Checked usage pattern
|
||||
final FailableFunction<Object, Integer, IOException> failingFunction = t -> { throw new IOException(); };
|
||||
final FailableFunction<Object, Integer, IOException> failingFunction = t -> {
|
||||
throw new IOException();
|
||||
};
|
||||
final FailableFunction<Object, Integer, IOException> nopFailableFunction = FailableFunction.nop();
|
||||
//
|
||||
assertThrows(IOException.class, () -> failingFunction.andThen(failingFunction).apply(null));
|
||||
|
Loading…
x
Reference in New Issue
Block a user