org.powermock.api.mockito.internal.exceptions.StackTraceCleanerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powermock-api-mockito Show documentation
Show all versions of powermock-api-mockito Show documentation
PowerMock API for Mockito 1.+..
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");
}
};
}
}