Package com.verisign.epp.util
Class TestUtil
java.lang.Object
com.verisign.epp.util.TestUtil
Test utility methods. This class contains a set of utility static methods
useful for interface tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidhandleException(EPPSession aSession, Exception aException) Handle anException, which can be either a server generated error or a general exception.
-
Constructor Details
-
TestUtil
public TestUtil()
-
-
Method Details
-
handleException
public static void handleException(EPPSession aSession, Exception aException) throws InvalidateSessionException Handle anException, which can be either a server generated error or a general exception. If the exception was caused by a server error, "Server Error :<Response XML>" will be specified. If the exception was caused by a general algorithm error, "General Error :<Exception Description>" will be specified.- Parameters:
aSession- Session being usedaException-Exceptionthrown during test- Throws:
InvalidateSessionException- The session should be invalidated by calling method
-