In this PR, the user can no longer sell a negative amount of cows. They are given an error message that says "You cannot sell a negative number of cows!"
In the UserCommonsControllerTests.java file, I added a function called test_SellCow_commons_exists_sell_negative_cows() to give a bad request if the given a negative number of cows to sell.
Screenshot of the test for the bug:
Overview
In this PR, the user can no longer sell a negative amount of cows. They are given an error message that says "You cannot sell a negative number of cows!"
Changes deployed at Dokku deployment here: https://happycows-bonniehuynh-dev.dokku-03.cs.ucsb.edu/
Tests
In the UserCommonsControllerTests.java file, I added a function called test_SellCow_commons_exists_sell_negative_cows() to give a bad request if the given a negative number of cows to sell. Screenshot of the test for the bug:
Closes #8