Class TestUtil

java.lang.Object
com.verisign.epp.util.TestUtil

public class TestUtil extends Object
Test utility methods. This class contains a set of utility static methods useful for interface tests.
  • Constructor Details

    • TestUtil

      public TestUtil()
  • Method Details

    • handleException

      public static void handleException(EPPSession aSession, Exception aException) throws InvalidateSessionException
      Handle an Exception, 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 used
      aException - Exception thrown during test
      Throws:
      InvalidateSessionException - The session should be invalidated by calling method