Class BaseTestCase

java.lang.Object
org.jmock.AbstractExpectations
org.jmock.Expectations
org.opendaylight.lispflowmapping.tools.junit.BaseExpectations
org.opendaylight.lispflowmapping.tools.junit.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 Details

    • LOG

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

    • BaseTestCase

      public BaseTestCase()
  • Method Details

    • asInet

      protected InetAddress asInet(int intValue)
    • fail

      public static void fail(String message)
    • fail

      public static void fail()
    • assertNotNull

      public static void assertNotNull(String message, Object object)
    • assertNotNull

      public static void assertNotNull(Object object)
    • assertNull

      public static void assertNull(Object message, Object object)
    • assertNull

      public static void assertNull(Object object)
    • assertSame

      public static void assertSame(String message, Object expected, Object actual)
    • assertSame

      public static void assertSame(Object expected, Object actual)
    • assertNotSame

      public static void assertNotSame(String message, Object unexpected, Object actual)
    • assertNotSame

      public static void assertNotSame(Object unexpected, Object actual)
    • inject

      protected Object inject(Object testedObject, String memberName, Object member) throws Exception
      Throws:
      Exception
    • inject

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

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

      protected static ByteBuffer hexToByteBuffer(String hex)
    • assertHexEquals

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

      protected static void assertHexEquals(byte expected, byte actual)