All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.junit.MockitoTestRule Maven / Gradle / Ivy

There is a newer version: 5.12.0
Show newest version
/*
 * Copyright (c) 2020 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.junit;

import org.junit.rules.TestRule;
import org.mockito.quality.Strictness;

/**
 * Equivalent to {@link MockitoRule}, but inherits a different JUnit4 base interface {@link TestRule}.
 * For more information, please see the documentation on {@link MockitoRule}.
 *
 * @since 3.3.0
 */
public interface MockitoTestRule extends TestRule {

    /**
     * Equivalent to {@link MockitoRule#silent()}.
     *
     * @since 3.3.0
     */
    MockitoTestRule silent();

    /**
     * Equivalent to {@link MockitoRule#strictness(Strictness)}.
     *
     * @since 3.3.0
     */
    MockitoTestRule strictness(Strictness strictness);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy