New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUnit4CitrusTestDesigner : validateScript doesn't work properly #58

Closed
arnaud-deprez opened this Issue Dec 18, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@arnaud-deprez

arnaud-deprez commented Dec 18, 2015

Hi,

With JUnit4CitrusTestDesigner, using the following code doesn't not work :

http().client(enterpriseApiHttpClient)
    .response(HttpStatus.OK)
    .contentType(MediaType.APPLICATION_JSON)
    .messageType(MessageType.JSON)
    .validateScriptType("groovy")
    .validateScript(new ClassPathResource("groovy/customer/ValidateGetCustomers.groovy")))
    .timeout(30000L);

It throw a FileNotFoundException for ValidateGetCustomers.groovy even if the file exists. However if I transform this file to a String, it works fine.

Regards

@christophd

This comment has been minimized.

Member

christophd commented Dec 29, 2015

Thanks for reporting this one, fixed it by immediately reading file resource content

@christophd christophd closed this Dec 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment