From 7f8ee6f118f419b572fff8ecd9d7ddfcd052fe73 Mon Sep 17 00:00:00 2001 From: pivovarit Date: Tue, 17 Jan 2017 09:04:42 +0100 Subject: [PATCH] Refactor LambdaExceptionWrappersTest --- .../lambda/exceptions/LambdaExceptionWrappersTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core-java/src/test/java/com/baeldung/java8/lambda/exceptions/LambdaExceptionWrappersTest.java b/core-java/src/test/java/com/baeldung/java8/lambda/exceptions/LambdaExceptionWrappersTest.java index 7b8ee55a27..05e84e2dab 100644 --- a/core-java/src/test/java/com/baeldung/java8/lambda/exceptions/LambdaExceptionWrappersTest.java +++ b/core-java/src/test/java/com/baeldung/java8/lambda/exceptions/LambdaExceptionWrappersTest.java @@ -1,12 +1,12 @@ package com.baeldung.java8.lambda.exceptions; +import org.junit.Before; +import org.junit.Test; + import java.io.IOException; import java.util.Arrays; import java.util.List; -import org.junit.Before; -import org.junit.Test; - import static com.baeldung.java8.lambda.exceptions.LambdaExceptionWrappers.*; public class LambdaExceptionWrappersTest { @@ -38,7 +38,7 @@ public class LambdaExceptionWrappersTest { integers.forEach(handlingConsumerWrapper(i -> writeToFile(i), IOException.class)); } - void writeToFile(Integer i) throws IOException { + private void writeToFile(Integer i) throws IOException { if (i == 0) { throw new IOException(); // mock IOException }