Package idatt2106.group3.backend.Service
Class UserServiceTest
- java.lang.Object
-
- idatt2106.group3.backend.Service.UserServiceTest
-
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) @ActiveProfiles("test") public class UserServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UserServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createUser_userGetsAdded_ReturnsTrue()
void
deleteUser_UserDoesNotExists_ReturnsFalse()
void
deleteUser_UserExists_ReturnsTrue()
void
editUser_updatesUser_ReturnsUpdatedUser()
void
getFutureActivities_UserHasNoActivities_ContainsActivity()
void
getUser_IdDoesNotExists_ReturnsNull()
void
getUser_IdExists_UserIsCorrect()
void
getUserActivities_UserHasNoActivities_EmptySet()
void
setup()
-
-
-
Method Detail
-
setup
@BeforeEach public void setup()
-
getUser_IdExists_UserIsCorrect
@Test public void getUser_IdExists_UserIsCorrect()
-
getUser_IdDoesNotExists_ReturnsNull
@Test public void getUser_IdDoesNotExists_ReturnsNull()
-
createUser_userGetsAdded_ReturnsTrue
@Test public void createUser_userGetsAdded_ReturnsTrue()
-
editUser_updatesUser_ReturnsUpdatedUser
@Test public void editUser_updatesUser_ReturnsUpdatedUser() throws javax.sql.rowset.serial.SerialException, java.sql.SQLException
- Throws:
javax.sql.rowset.serial.SerialException
java.sql.SQLException
-
deleteUser_UserExists_ReturnsTrue
@Test public void deleteUser_UserExists_ReturnsTrue()
-
deleteUser_UserDoesNotExists_ReturnsFalse
@Test public void deleteUser_UserDoesNotExists_ReturnsFalse()
-
getUserActivities_UserHasNoActivities_EmptySet
@Test public void getUserActivities_UserHasNoActivities_EmptySet()
-
getFutureActivities_UserHasNoActivities_ContainsActivity
@Test public void getFutureActivities_UserHasNoActivities_ContainsActivity()
-
-