Class ExceptionFactory


  • public class ExceptionFactory
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  ExceptionFactory.JUnitArgsAreDifferent
      Don't inline this class! It allows create the JUnit-ArgumentsAreDifferent exception without the need to use reflection.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean hasJUnit  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExceptionFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean canLoadJunitClass()  
      static java.lang.AssertionError createArgumentsAreDifferentException​(java.lang.String message, java.lang.String wanted, java.lang.String actual)
      If JUnit is used, an AssertionError is returned that extends from JUnit ComparisonFailure and hence provide a better IDE support as the comparison result is comparable
      private static java.lang.AssertionError createJUnitArgumentsAreDifferent​(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
    • Field Detail

      • hasJUnit

        private static final boolean hasJUnit
    • Constructor Detail

      • ExceptionFactory

        private ExceptionFactory()
    • Method Detail

      • createArgumentsAreDifferentException

        public static java.lang.AssertionError createArgumentsAreDifferentException​(java.lang.String message,
                                                                                    java.lang.String wanted,
                                                                                    java.lang.String actual)
        If JUnit is used, an AssertionError is returned that extends from JUnit ComparisonFailure and hence provide a better IDE support as the comparison result is comparable
      • createJUnitArgumentsAreDifferent

        private static java.lang.AssertionError createJUnitArgumentsAreDifferent​(java.lang.String message,
                                                                                 java.lang.String wanted,
                                                                                 java.lang.String actual)
      • canLoadJunitClass

        private static boolean canLoadJunitClass()