![JAR search and dependency download from the Maven repository](/logo.png)
autofixture.publicinterface.inline.implementationdetails.ExplodingInstanceHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autofixturegenerator Show documentation
Show all versions of autofixturegenerator Show documentation
An attempt to reimplement core features of a popular .NET anonymous value generator - AutoFixture - in
Java
package autofixture.publicinterface.inline.implementationdetails;
import autofixture.exceptions.BoomException;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class ExplodingInstanceHandler implements InvocationHandler {
@Override
public Object invoke(final Object proxy, final Method method, final Object[] args)
throws RuntimeException {
throw new BoomException(
"Everything, like, exploooded, man... you shouldn't touch an exploding instance of " + proxy.getClass());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy