org.mockito.internal.junit.JUnitDetecter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-all Show documentation
Show all versions of mockito-all Show documentation
Mock objects library for java
The newest version!
package org.mockito.internal.junit;
class JUnitDetecter {
private boolean hasJUnit;
JUnitDetecter() {
try {
Class.forName("junit.framework.ComparisonFailure");
hasJUnit = true;
} catch (Throwable t) {
hasJUnit = false;
}
}
public boolean hasJUnit() {
return hasJUnit;
}
}