Skip to content

Commit 7f8ee6f

Browse files
committed
Refactor LambdaExceptionWrappersTest
1 parent 0aa4699 commit 7f8ee6f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎core-java/src/test/java/com/baeldung/java8/lambda/exceptions/LambdaExceptionWrappersTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package com.baeldung.java8.lambda.exceptions;
22

3+
import org.junit.Before;
4+
import org.junit.Test;
5+
36
import java.io.IOException;
47
import java.util.Arrays;
58
import java.util.List;
69

7-
import org.junit.Before;
8-
import org.junit.Test;
9-
1010
import static com.baeldung.java8.lambda.exceptions.LambdaExceptionWrappers.*;
1111

1212
public class LambdaExceptionWrappersTest {
@@ -38,7 +38,7 @@ public void whenNoExceptionFromHandlingConsumerWrapper_thenSuccess() {
3838
integers.forEach(handlingConsumerWrapper(i -> writeToFile(i), IOException.class));
3939
}
4040

41-
void writeToFile(Integer i) throws IOException {
41+
private void writeToFile(Integer i) throws IOException {
4242
if (i == 0) {
4343
throw new IOException(); // mock IOException
4444
}

0 commit comments

Comments
 (0)