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

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

Best Java code snippets using org.chorusbdd.chorus.handlerconfig.configproperty.ConfigValidator.<init> (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<init>

Popular methods of ConfigValidator

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getSupportFragmentManager (FragmentActivity)
    • onCreateOptionsMenu (Activity)
    • getApplicationContext (Context)
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • URL (java.net)
      A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
    • Format (java.text)
      The base class for all formats. This is an abstract base class which specifies the protocol for clas
    • List (java.util)
      An ordered collection (also known as a sequence). The user of this interface has precise control ove
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • Best plugins for Eclipse
    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