mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-28 05:05:14 +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.
|
* Verify that all AutoCloseables that have been created during the method execution have been closed.
|
||||||
*/
|
*/
|
||||||
private void verifyHaveMocksBeenClosed() {
|
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 {
|
try {
|
||||||
for (AutoCloseable autoCloseable : closeables) {
|
for (AutoCloseable autoCloseable : closeables) {
|
||||||
verify(autoCloseable).close();
|
verify(autoCloseable).close();
|
||||||
|
Loading…
Reference in New Issue
Block a user