package com.tunjid.androidx.test;

import androidx.test.espresso.IdlingRegistry;
import androidx.test.espresso.IdlingResource;

import java.util.Collection;

/**
 * Aggregation of utility test functions
 */

public class TestUtils {

    public static void unregisterAllIdlingResources() {
        Collection<IdlingResource> idlingResources = IdlingRegistry.getInstance().getResources();
        for (IdlingResource resource : idlingResources) {
            IdlingRegistry.getInstance().unregister(resource);
        }
    }
}
