Skip to content

Commit 50067f3

Browse files
committed
Cleanup code
1 parent ba075df commit 50067f3

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/test/java/ch/powerunit/extensions/exceptions/ExceptionHandlerSupportTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ExceptionHandlerSupportTest implements TestSuite {
3030

3131
@Test
3232
public void testExceptionMapper() {
33-
assertThatFunction(new ExceptionHandlerSupport<Object, Object>() {
33+
assertThatFunction(new ExceptionHandlerSupport<>() {
3434

3535
@Override
3636
public Object uncheck() {

src/test/java/ch/powerunit/extensions/exceptions/FileFilterWithExceptionTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ public void acceptCheckedException() {
113113

114114
@Test
115115
public void acceptCheckedNoExceptionHandler() {
116-
assertThat(FileFilterWithException.unchecked(x -> true, RuntimeException::new).accept(new File(".")))
117-
.is(true);
116+
assertThat(FileFilterWithException.unchecked(x -> true, RuntimeException::new).accept(new File("."))).is(true);
118117
}
119118

120119
@Test

src/test/java/ch/powerunit/extensions/exceptions/FunctionWithExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void testAsCallableException() {
154154
throw new Exception();
155155
}, "").call()).throwException(instanceOf(Exception.class));
156156
}
157-
157+
158158
@Test
159159
public void testAsRunnableNoException() throws Exception {
160160
FunctionWithException.asRunnable(x -> x, "1").run();

src/test/java/ch/powerunit/extensions/exceptions/samples/DoubleToLongFunctionSamplesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void sample2() {
5454
.throwException(instanceOf(IllegalArgumentException.class));
5555

5656
}
57-
57+
5858
@Test
5959
public void sample3() {
6060

src/test/java/ch/powerunit/extensions/exceptions/samples/FunctionSamplesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void sample7() {
163163
both(exceptionMessage("null ; ErrorCode=0 ; SQLState=null")).and(instanceOf(WrappedException.class)));
164164

165165
}
166-
166+
167167
@Test
168168
public void sample8() {
169169

0 commit comments

Comments
 (0)