modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T validateScript(final Resource scriptResource, final Charset charset) {
        try {
            validateScript(FileUtils.readToString(scriptResource, charset));
        } catch (final IOException e) {
            throw new CitrusRuntimeException("Failed to read script resource file", e);
        }

        return self;
    }
/**
     * Reads validation script file resource and sets content as validation script.
     * @param scriptResource
     * @param charset
     * @return
     */
Reads validation script file resource and sets content as validation script.
@param scriptResource
@param charset
@return
Reads validation script file resource and sets content as validation script . @param scriptResource @param charset @return
public T validateScript(final Resource scriptResource, final Charset charset) {
        try {
            validateScript(FileUtils.readToString(scriptResource, charset));
        } catch (final IOException e) {
            throw new CitrusRuntimeException("Failed to read script resource file", e);
        }
        return self;
    }
public T validateScript ( final Resource scriptResource , final Charset charset ) { try { validateScript ( FileUtils . readToString ( scriptResource , charset ) ) ; } catch ( final IOException e ) { throw new CitrusRuntimeException ( "Failed to read script resource file" , e ) ; } return self ; }
Reads validation script file resource and sets content as validation script.
Reads validation script file resource and sets content as validation script .