Skip to content

Commit

Permalink
Fix: Better naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Mar 4, 2026
1 parent 7fa8603 commit d3565a3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@ public void setup(){
* Getters should work:
*/
@Test
public void gettingIdShouldWork(){
public void testGettingIdShouldWork(){
assertInstanceOf(UUID.class, charity.getId());
}
@Test
public void gettingCategoryShouldWork(){
public void testGettingCategoryShouldWork(){
assertEquals("Cancer", charity.getCategory());
}
@Test
public void gettingNameShouldWork(){
public void testGettingNameShouldWork(){
assertEquals( "Charity1",charity.getName());
}
@Test
public void gettingDescriptionShouldWork(){
public void testGettingDescriptionShouldWork(){
assertEquals("Something Somewhere Somehow",charity.getDescription());
}

/**
* Getter and setter for IsVerified should be able to switch between true and false
*/
@Test
public void isVerifiedReturnsCorrectly(){
public void testIsVerifiedReturnsCorrectly(){
assertFalse(charity.isVerified());
charity.setVerified();
assertTrue(charity.isVerified());
Expand All @@ -58,7 +58,7 @@ public void isVerifiedReturnsCorrectly(){
* totalDonations should display accuratly and adding works
*/
@Test
public void totalDonationsReturnsCorrectlyAfterChanges(){
public void testTotalDonationsReturnsCorrectlyAfterChanges(){
assertEquals(0, charity.getTotalDonations());
charity.setTotalDonations(10);
charity.setTotalDonations(5);
Expand Down

0 comments on commit d3565a3

Please sign in to comment.