Class GroovyTestUtils


  • public class GroovyTestUtils
    extends Object
    Provides GroovyTest Utility methods.
    Since:
    17.10.5
    • Constructor Detail

      • GroovyTestUtils

        public GroovyTestUtils()
    • Method Detail

      • requiresUnitTestModification

        public static boolean requiresUnitTestModification​(String testScript)
        Test whether the unit test contains TransactSDKUnitTest class.
        Parameters:
        testScript - the groovy unit test script to test
        Returns:
        true if a TransactSDKUnitTest
      • convertToAbstractJUnitTest

        public static String convertToAbstractJUnitTest​(String testScript)
        Convert the TransactSDKUnitTest script to use AbstractJUnitTest class which will run on TM server.
        Parameters:
        testScript - the groovy unit test script to convert
        Returns:
        the converted groovy unit test script