Class GroovyTestUtils

java.lang.Object
com.avoka.fc.core.util.GroovyTestUtils

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

    • GroovyTestUtils

      public GroovyTestUtils()
  • Method Details

    • 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