congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConfigValidator
Code IndexAdd Tabnine to your IDE (free)

How to use
ConfigValidator
in
org.chorusbdd.chorus.handlerconfig.configproperty

Best Java code snippets using org.chorusbdd.chorus.handlerconfig.configproperty.ConfigValidator (Showing top 5 results out of 315)

origin: Chorus-bdd/Chorus

@ConfigValidator
public void checkValid() {
  checkNotNullAndNotEmpty(this.url, "url");
  checkNotNullAndNotEmpty(this.driverClassName, "driverClassName");
}
origin: Chorus-bdd/Chorus

@ConfigValidator
public void checkValid() {
  switch (seleniumDriverType) {
    case CHROME:
      checkChromeProperties();
      break;
    case REMOTE_WEB_DRIVER:
      checkRemoteWebDriverProperites();
      break;
    default:
      throw new ConfigValidatorException("Selenium Driver Type " + seleniumDriverType + " config cannot be validated");
  }
}
origin: Chorus-bdd/Chorus

@ConfigValidator
public void checkValid() {
  if ( isJavaProcess() ) {
    //some properties are mandatory for java processes
    checkPropertiesForJavaProcess();
  } else {
    //some properties should not be used for non-java processes
    checkPropertiesForNativeProcess();
  }
}
origin: Chorus-bdd/Chorus

@ConfigValidator
public void validate() {
  if (host == null) throw new ConfigValidatorException("host property must be set");
  if (port < 0) throw new ConfigValidatorException("port must be set and > 0");
  if (connectionAttempts < 0) throw new ConfigValidatorException("connectionAttempts must be set and > 0");
  if (connectionAttemptMillis < 0) throw new ConfigValidatorException("connectionAttemptMillis must be set and > 0");
}
origin: Chorus-bdd/Chorus

@ConfigValidator
public void checkValid() {
  if ( getPort() == 0) {
    throw new ConfigValidatorException("port cannot be 0");
  } else if ( getStepTimeoutSeconds() < 1) {
    throw new ConfigValidatorException("stepTimeoutSeconds was less than 1");
  } else if ( getScope() == null) {
    throw new ConfigValidatorException("scope was not set");
  } else if ( getClientConnectTimeoutSeconds() < 1) {
    throw new ConfigValidatorException("client connect timeout seconds cannot be < 1");
  }
}
org.chorusbdd.chorus.handlerconfig.configpropertyConfigValidator

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JComboBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now