Skip to content

Commit 6705f25

Browse files
committed
. t suppress output in testTheVerifyApi
1 parent 7287a80 commit 6705f25

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

approvaltests-tests/src/test/java/org/approvaltests/CheckedExceptionsTest.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package org.approvaltests;
22

33
import com.spun.util.ClassUtils;
4+
import com.spun.util.logger.SimpleLogger;
5+
46
import org.junit.jupiter.api.Test;
57
import org.lambda.query.Query;
68
import org.lambda.query.Queryable;
@@ -15,10 +17,13 @@
1517
public class CheckedExceptionsTest
1618
{
1719
@Test
18-
void testTheVerifyApi()
20+
void testTheVerifyApi() throws Exception
1921
{
20-
verifyMethodSignatures("Methods with checked exceptions", getAllClasses(),
21-
this::getMethodsWithCheckedExceptions);
22+
try (var l = SimpleLogger.quiet())
23+
{
24+
verifyMethodSignatures("Methods with checked exceptions", getAllClasses(),
25+
this::getMethodsWithCheckedExceptions);
26+
}
2227
}
2328
private List<Method> getMethodsWithCheckedExceptions(Class<?> aClass)
2429
{

0 commit comments

Comments
 (0)