Package core.helpers

Class ExternalClassHelper

java.lang.Object
core.helpers.ExternalClassHelper

public class ExternalClassHelper
extends Object
Author:
ehsan matean
  • Constructor Details

    • ExternalClassHelper

      public ExternalClassHelper()
  • Method Details

    • runInternalClass

      public static Object runInternalClass​(String sourcePath, String methodName, List<KeyValue> parameterList) throws Exception
      Throws:
      Exception
    • getParameterNames

      protected static Object[] getParameterNames​(List<KeyValue> parameters)
    • isParameterNamesProvided

      protected static boolean isParameterNamesProvided​(List<KeyValue> paramters)
      parameters should either be all format: parameterName:value or just value
      Parameters:
      paramters -
      Returns:
    • isParameterNamesMatch

      protected static boolean isParameterNamesMatch​(Object[] parameterNames, Object[] parameterList)
      verify if parameter names match the ones in the method
      Parameters:
      external -
      methodName -
      parameterList -