mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-25 01:57:48 +01:00
Reduce output of resource closing tests
This commit is contained in:
parent
90a0202b49
commit
8832c1ac0f
@ -167,7 +167,9 @@ public abstract class AbstractResourceClosingTest {
|
||||
* Verify that all AutoCloseables that have been created during the method execution have been closed.
|
||||
*/
|
||||
private void verifyHaveMocksBeenClosed() {
|
||||
System.out.println("Found " + closeables.size() + " resources");
|
||||
if (closeables.isEmpty()) {
|
||||
System.out.println("Note: detected no AutoCloseables for method '" + method.getName() + "'");
|
||||
}
|
||||
try {
|
||||
for (AutoCloseable autoCloseable : closeables) {
|
||||
verify(autoCloseable).close();
|
||||
|
Loading…
Reference in New Issue
Block a user