Search in sources :

Example 1 with DefaultMockitoSession

use of org.mockito.internal.framework.DefaultMockitoSession in project mockito by mockito.

the class DefaultMockitoSessionBuilder method startMocking.

@Override
public MockitoSession startMocking() {
    //Configure default values
    Object effectiveTest = this.testClassInstance == null ? new Object() : this.testClassInstance;
    Strictness effectiveStrictness = this.strictness == null ? Strictness.STRICT_STUBS : this.strictness;
    return new DefaultMockitoSession(effectiveTest, effectiveStrictness, new ConsoleMockitoLogger());
}
Also used : DefaultMockitoSession(org.mockito.internal.framework.DefaultMockitoSession) ConsoleMockitoLogger(org.mockito.internal.util.ConsoleMockitoLogger) Strictness(org.mockito.quality.Strictness)

Aggregations

DefaultMockitoSession (org.mockito.internal.framework.DefaultMockitoSession)1 ConsoleMockitoLogger (org.mockito.internal.util.ConsoleMockitoLogger)1 Strictness (org.mockito.quality.Strictness)1