src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarm.java
public Boolean isRestrictedDefaultSpec(Upload testSpec) {
        if (testSpec != null) {
            if ((APPIUM_RUBY_TEST_SPEC.equals(testSpec.getType()) ||
                APPIUM_NODE_TEST_SPEC.equals(testSpec.getType()) ||
                APPIUM_WEB_RUBY_TEST_SPEC.equals(testSpec.getType()) ||
                APPIUM_WEB_NODE_TEST_SPEC.equals(testSpec.getType())) &&
                (CURATED.equals(testSpec.getCategory()))) {
                return true;
            }
        }
        return false;
    }
/**
     * Helper function to detect a default testspec file for frameworks that cannot use it.
     *
     * @param testSpec the testspec file to check
     *
     * @return true if it is a default spec file.
     * @throws AWSDeviceFarmException
     */
Helper function to detect a default testspec file for frameworks that cannot use it.
@param testSpec the testspec file to check

@return true if it is a default spec file.
Helper function to detect a default testspec file for frameworks that cannot use it . @param testSpec the testspec file to check @return true if it is a default spec file .
public Boolean isRestrictedDefaultSpec(Upload testSpec) {
        if (testSpec != null) {
            if ((APPIUM_RUBY_TEST_SPEC.equals(testSpec.getType()) ||
                APPIUM_NODE_TEST_SPEC.equals(testSpec.getType()) ||
                APPIUM_WEB_RUBY_TEST_SPEC.equals(testSpec.getType()) ||
                APPIUM_WEB_NODE_TEST_SPEC.equals(testSpec.getType())) &&
                (CURATED.equals(testSpec.getCategory()))) {
                return true;
            }
        }
        return false;
    }
public Boolean isRestrictedDefaultSpec ( Upload testSpec ) { if ( testSpec != null ) { if ( ( APPIUM_RUBY_TEST_SPEC . equals ( testSpec . getType ( ) ) || APPIUM_NODE_TEST_SPEC . equals ( testSpec . getType ( ) ) || APPIUM_WEB_RUBY_TEST_SPEC . equals ( testSpec . getType ( ) ) || APPIUM_WEB_NODE_TEST_SPEC . equals ( testSpec . getType ( ) ) ) && ( CURATED . equals ( testSpec . getCategory ( ) ) ) ) { return true ; } } return false ; }
Helper function to detect a default testspec file for frameworks that cannot use it.
Helper function to detect a default testspec file for frameworks that cannot use it .