Two new buttons (like and dislike) has been added on all cheeps
A user can only like or dislike.
If a user has previously liked a cheep and the user now dislikes, it will remove the like from the cheep (and vice versa for dislike and then to like a cheep)
Methods added
New methods added in the model files of user timeline and public timeline, alongside new methods in CheepRepository & CheepService. These are added to handle the like and dislike logic of the cheeps.
4 Unit test added:
DoesAuthorLike: Checks whether or not a cheep has received a like after an Author likes it.
DoesAuthorUnlike: Then checks whether the author can unlike a cheep, he or she has previously liked
DoesAuthorDislike: Same as DoesAuthorLike but for dislikes
DoesAuthorUndislike: Same as DoesAuthorUnlike but for dislikes
Feature added
Methods added
4 Unit test added: