Class XMLTestHelper

java.lang.Object
com.helger.xml.mock.XMLTestHelper

@Immutable public final class XMLTestHelper extends Object
Helper methods for handling XML based testing
Author:
Philip Helger
  • Method Details

    • testMicroTypeConversion

      public static <T> T testMicroTypeConversion(@Nonnull T aObj)
      Test if the MicroTypeConverter is OK. It converts it to XML and back and than uses CommonsTestHelper.testDefaultImplementationWithEqualContentObject(Object, Object) to check for equality.
      Type Parameters:
      T - The data type to be used and returned
      Parameters:
      aObj - The object to test
      Returns:
      The object read after conversion