Package com.verisign.epp.util
Class TestUtil
- java.lang.Object
-
- com.verisign.epp.util.TestUtil
-
public class TestUtil extends java.lang.Object
Test utility methods. This class contains a set of utility static methods useful for interface tests.
-
-
Constructor Summary
Constructors Constructor Description TestUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
handleException(EPPSession aSession, java.lang.Exception aException)
Handle anException
, which can be either a server generated error or a general exception.
-
-
-
Method Detail
-
handleException
public static void handleException(EPPSession aSession, java.lang.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
-Exception
thrown during test- Throws:
InvalidateSessionException
- The session should be invalidated by calling method
-
-