Package com.helger.xml.mock
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TtestMicroTypeConversion(T aObj)Test if theMicroTypeConverteris OK.
-
-
-
Method Detail
-
testMicroTypeConversion
public static <T> T testMicroTypeConversion(@Nonnull T aObj)
Test if theMicroTypeConverteris OK. It converts it to XML and back and than usesCommonsTestHelper.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
-
-