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

autofixture.publicinterface.inline.implementationdetails.ExplodingInstanceHandler Maven / Gradle / Ivy

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 - 2024 Weber Informatics LLC | Privacy Policy