Class ExceptionFactory.JUnitArgsAreDifferent

  • Enclosing class:
    ExceptionFactory

    private static class ExceptionFactory.JUnitArgsAreDifferent
    extends java.lang.Object
    Don't inline this class! It allows create the JUnit-ArgumentsAreDifferent exception without the need to use reflection.

    If JUnit is not available a call to create(String, String, String) will throw a NoClassDefFoundError. The NoClassDefFoundError will be thrown by the class loader cause the JUnit class ComparisonFailure can't be loaded which is a upper class of ArgumentsAreDifferent.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.AssertionError create​(java.lang.String message, java.lang.String wanted, java.lang.String actual)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JUnitArgsAreDifferent

        private JUnitArgsAreDifferent()
    • Method Detail

      • create

        static java.lang.AssertionError create​(java.lang.String message,
                                               java.lang.String wanted,
                                               java.lang.String actual)