public void validate() throws ConfigurationException { Validate.configurationDirectoryExists(jbossHome, "Either JBOSS_HOME environment variable or jbossHome property in Arquillian configuration must be set and point to a valid directory"); Validate.configurationDirectoryExists(javaHome, "Either JAVA_HOME environment variable or javaHome property in Arquillian configuration must be set and point to a valid directory"); }
/** * {@inheritDoc} * * @see org.jboss.as.arquillian.container.CommonContainerConfiguration#validate() */ @Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); Validate.configurationDirectoryExists(jbossHome, "modulePath '" + modulePath + "' must exist"); Validate.configurationDirectoryExists(jbossHome, "bundlePath '" + bundlePath + "' must exist"); } }
@Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome must exist at " + jbossHome); if (javaHome != null) { Validate.configurationDirectoryExists(javaHome, "javaHome must exist at " + javaHome); } if (controllerJavaHome != null) { Validate.configurationDirectoryExists(controllerJavaHome, "controllerJavaHome must exist at " + controllerJavaHome); } }
/** * {@inheritDoc} * * @see org.jboss.as.arquillian.container.CommonContainerConfiguration#validate() */ @Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); Validate.configurationDirectoryExists(modulePath, "modulePath '" + modulePath + "' must exist"); if (bundlePath != null) { Validate.configurationDirectoryExists(bundlePath, "bundlePath '" + bundlePath + "' must exist"); } } }
@Override public void validate() throws ConfigurationException { super.validate(); if (jbossHome != null) Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); if (javaHome != null) Validate.configurationDirectoryExists(javaHome, "javaHome '" + javaHome + "' must exist"); } }
@Override public void validate() throws ConfigurationException { super.validate(); if (jbossHome != null) Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); if (javaHome != null) Validate.configurationDirectoryExists(javaHome, "javaHome '" + javaHome + "' must exist"); } }
@Override public void validate() throws ConfigurationException { super.validate(); if (jbossHome != null) Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); if (javaHome != null) Validate.configurationDirectoryExists(javaHome, "javaHome '" + javaHome + "' must exist"); } }
/** * {@inheritDoc} * * @see org.jboss.as.arquillian.container.CommonContainerConfiguration#validate() */ @Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); Validate.configurationDirectoryExists(modulePath, "modulePath '" + modulePath + "' must exist"); } }
@Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome must exist"); if (javaHome != null) { Validate.configurationDirectoryExists(javaHome, "javaHome must exist"); } }
/** * {@inheritDoc} * * @see org.jboss.as.arquillian.container.CommonContainerConfiguration#validate() */ @Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); if (javaHome != null) { Validate.configurationDirectoryExists(javaHome, "javaHome must exist"); } }
@Override public void validate() throws ConfigurationException { super.validate(); Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist"); if (javaHome != null) { Validate.configurationDirectoryExists(javaHome, "javaHome must exist"); } }
public void validate() throws ConfigurationException { Validate.configurationDirectoryExists(ispnHome, "Either ISPN_HOME environment variable or ispnHome property in Arquillian configuration must be set and point to a valid directory"); Validate.notNull(protocol, "protocol property in Arquillian configuration must be set"); validateProtocol(protocol); }
/** * Validates if current configuration is valid, that is if all required * properties are set and have correct values */ public void validate() throws ConfigurationException { Validate.notNull(getGlassFishHome(), "The property glassFishHome must be specified or the GLASSFISH_HOME environment variable must be set"); Validate.configurationDirectoryExists(getGlassFishHome() + "/glassfish", getGlassFishHome() + " is not a valid GlassFish installation"); if (!getAdminCliJar().isFile()) { throw new IllegalArgumentException( "Could not locate admin-cli.jar module in GlassFish installation: " + getGlassFishHome()); } if (getDomain() != null) { Validate.configurationDirectoryExists(getGlassFishHome() + "/glassfish/domains/" + getDomain(), "Invalid domain: " + getDomain()); } super.validate(); } }