diff --git a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java index 7e25bc7..1707499 100644 --- a/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java +++ b/helpmehelpapplication/src/test/java/ntnu/systemutvikling/team6/models/CharityTest.java @@ -26,19 +26,19 @@ 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()); } @@ -46,7 +46,7 @@ public void gettingDescriptionShouldWork(){ * 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()); @@ -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);