Question: Test Results Help Run Test: [ ERROR ] ApplicationTests.statusCode 4 0 0 WhenInvalidDataProvided: 9 5 Status expected: 4 0 0 > but was: 2 0

Test Results
Help
Run Test:
[ERROR] ApplicationTests.statusCode400WhenInvalidDataProvided:95 Status expected:400> but was:201>
[ERROR] ApplicationTests.statusCode400WhenInvalidEmailProvided: 79 JSON path "$.customerEmail"
Expected: is "Invalid customer email"
but: was "must be a well-formed email address"
[ERROR] ApplicationTests.statusCode400 WhenInvalidSellingPriceProvided:61 JSON path "$. sellingPrice"
Expected: is "Value should be none negative"
but: was "Value should be non negative"
[FRROR] ApplicationTests.testCreatedWithValidData: 44 Status expected: 201> but was: 400>
[INFO]
[ERROR] Tests run: 4, Failures: 4, Errors: 0, Skipped: 0
 Test Results Help Run Test: [ERROR] ApplicationTests.statusCode400WhenInvalidDataProvided:95 Status expected:400> but was:201>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!