test_class.file: aws-elasticbeanstalk-common/src/test/java/jetbrains/buildServer/runner/elasticbeanstalk/ParametersValidatorTest.java
test_class.identifier: ParametersValidatorTest
test_class.superclass: extends BaseTestCase
test_case.body: @Test
    public void unexpected_wait_poll_interval() throws Exception {
      then(validateRuntime(
          params(WAIT_FLAG_PARAM, "true"),
          params(WAIT_POLL_INTERVAL_SEC_CONFIG_PARAM, "50sec"))).
          as("Must detect unexpected wait poll interval").
          containsEntry(WAIT_POLL_INTERVAL_SEC_CONFIG_PARAM, "elasticbeanstalk.wait.poll.interval.sec must be a positive integer value");
    }
test_case.class_method_signature: ParametersValidatorTest.unexpected_wait_poll_interval()
test_case.full_signature: @Test public void unexpected_wait_poll_interval()
test_case.identifier: unexpected_wait_poll_interval
test_case.invocations: containsEntry as then validateRuntime params params
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void unexpected_wait_poll_interval()
focal_class.file: aws-elasticbeanstalk-common/src/main/java/jetbrains/buildServer/runner/elasticbeanstalk/ParametersValidator.java
focal_class.identifier: ParametersValidator
focal_class.class_method_signature: ParametersValidator.validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_class.full_signature: @NotNull static Map<String, String> validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_class.identifier: validateRuntime
focal_class.modifiers: @NotNull static
focal_class.parameters: (@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_class.class_method_signature: ParametersValidator.validateSettings(@NotNull Map<String, String> params)
focal_class.full_signature: @NotNull static Map<String, String> validateSettings(@NotNull Map<String, String> params)
focal_class.identifier: validateSettings
focal_class.modifiers: @NotNull static
focal_class.parameters: (@NotNull Map<String, String> params)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> validateSettings(@NotNull Map<String, String> params)
focal_class.class_method_signature: ParametersValidator.validate(@NotNull Map<String, String> runnerParams, boolean runtime)
focal_class.full_signature: private static Map<String, String> validate(@NotNull Map<String, String> runnerParams, boolean runtime)
focal_class.identifier: validate
focal_class.modifiers: private static
focal_class.parameters: (@NotNull Map<String, String> runnerParams, boolean runtime)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> validate(@NotNull Map<String, String> runnerParams, boolean runtime)
focal_class.class_method_signature: ParametersValidator.validatePositiveInteger(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.full_signature: private static void validatePositiveInteger(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.identifier: validatePositiveInteger
focal_class.modifiers: private static
focal_class.parameters: (@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.return: void
focal_class.signature: void validatePositiveInteger(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.class_method_signature: ParametersValidator.validateS3Key(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.full_signature: private static void validateS3Key(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.identifier: validateS3Key
focal_class.modifiers: private static
focal_class.parameters: (@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.return: void
focal_class.signature: void validateS3Key(@NotNull Map<String, String> invalids, @NotNull String param, @NotNull String key, @NotNull String name, boolean runtime)
focal_class.class_method_signature: ParametersValidator.isReference(@NotNull String param, boolean runtime)
focal_class.full_signature: private static boolean isReference(@NotNull String param, boolean runtime)
focal_class.identifier: isReference
focal_class.modifiers: private static
focal_class.parameters: (@NotNull String param, boolean runtime)
focal_class.return: boolean
focal_class.signature: boolean isReference(@NotNull String param, boolean runtime)
focal_method.body: @NotNull
    static Map<String, String> validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir) {
      final Map<String, String> invalids = new HashMap<String, String>(validate(runnerParams, true));
  
      if (isDeploymentWaitEnabled(runnerParams)) {
        final String waitIntervalSec = configParams.get(WAIT_POLL_INTERVAL_SEC_CONFIG_PARAM);
        if (StringUtil.isNotEmpty(waitIntervalSec)) {
          validatePositiveInteger(invalids, waitIntervalSec, WAIT_POLL_INTERVAL_SEC_CONFIG_PARAM, WAIT_POLL_INTERVAL_SEC_CONFIG_PARAM, true);
        }
      }
  
      return Collections.unmodifiableMap(invalids);
    }
focal_method.class_method_signature: ParametersValidator.validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_method.full_signature: @NotNull static Map<String, String> validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_method.identifier: validateRuntime
focal_method.invocations: validate isDeploymentWaitEnabled get isNotEmpty validatePositiveInteger unmodifiableMap
focal_method.modifiers: @NotNull static
focal_method.parameters: (@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)
focal_method.return: Map<String, String>
focal_method.signature: Map<String, String> validateRuntime(@NotNull Map<String, String> runnerParams, @NotNull Map<String, String> configParams, @NotNull File checkoutDir)