com.fitbur.mockito.junit.MockitoJUnit Maven / Gradle / Ivy
package com.fitbur.mockito.junit;
import com.fitbur.mockito.internal.junit.JUnitRule;
import com.fitbur.mockito.internal.util.ConsoleMockitoLogger;
/**
* The JUnit rule can be used instead of {@link com.fitbur.mockito.runners.MockitoJUnitRunner}. See {@link MockitoRule}.
*
* @since 1.10.17
*/
public class MockitoJUnit {
/**
* Creates rule instance that initiates @Mocks
* See {@link MockitoRule}.
*
* @return the rule instance
*/
public static MockitoRule rule() {
return new JUnitRule(new ConsoleMockitoLogger());
}
/**
* Creates a rule instance that can perform lazy verifications.
*
* @see VerificationCollector
* @return the rule instance
*/
public static VerificationCollector collector() {
return new VerificationCollectorImpl();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy