Class BaseTestCase

  • All Implemented Interfaces:
    org.jmock.internal.ExpectationBuilder, org.jmock.syntax.ActionClause, org.jmock.syntax.ArgumentConstraintPhrases, org.jmock.syntax.CardinalityClause

    public abstract class BaseTestCase
    extends BaseExpectations
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
    • Constructor Detail

      • BaseTestCase

        public BaseTestCase()
    • Method Detail

      • asInet

        protected java.net.InetAddress asInet​(int intValue)
      • fail

        public static void fail​(java.lang.String message)
      • fail

        public static void fail()
      • assertNotNull

        public static void assertNotNull​(java.lang.String message,
                                         java.lang.Object object)
      • assertNotNull

        public static void assertNotNull​(java.lang.Object object)
      • assertNull

        public static void assertNull​(java.lang.Object message,
                                      java.lang.Object object)
      • assertNull

        public static void assertNull​(java.lang.Object object)
      • assertSame

        public static void assertSame​(java.lang.String message,
                                      java.lang.Object expected,
                                      java.lang.Object actual)
      • assertSame

        public static void assertSame​(java.lang.Object expected,
                                      java.lang.Object actual)
      • assertNotSame

        public static void assertNotSame​(java.lang.String message,
                                         java.lang.Object unexpected,
                                         java.lang.Object actual)
      • assertNotSame

        public static void assertNotSame​(java.lang.Object unexpected,
                                         java.lang.Object actual)
      • inject

        protected java.lang.Object inject​(java.lang.Object testedObject,
                                          java.lang.String memberName,
                                          java.lang.Object member)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • inject

        protected java.lang.Object inject​(java.lang.Object testedObject,
                                          BaseTestCase.FieldData fieldData)
      • injectStatic

        protected java.lang.Object injectStatic​(java.lang.Class<?> clazz,
                                                java.lang.String memberName,
                                                java.lang.Object member)
                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • hexToByteBuffer

        protected static java.nio.ByteBuffer hexToByteBuffer​(java.lang.String hex)
      • assertHexEquals

        protected static void assertHexEquals​(short expected,
                                              short actual)
      • assertHexEquals

        protected static void assertHexEquals​(byte expected,
                                              byte actual)