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

org.powermock.api.mockito.internal.exceptions.StackTraceCleanerProvider Maven / Gradle / Ivy

There is a newer version: 1.7.4
Show newest version
package org.powermock.api.mockito.internal.exceptions;

import org.mockito.exceptions.stacktrace.StackTraceCleaner;

public class StackTraceCleanerProvider implements org.mockito.plugins.StackTraceCleanerProvider {
    @Override
    public StackTraceCleaner getStackTraceCleaner(final StackTraceCleaner defaultCleaner) {
        return new StackTraceCleaner() {
            @Override
            public boolean isOut(StackTraceElement candidate) {
                return defaultCleaner.isOut(candidate) || candidate.getClassName().startsWith("org.powermock.api.mockito");
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy