Class UserServiceTest


  • @ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
    @ActiveProfiles("test")
    public class UserServiceTest
    extends java.lang.Object
    • Constructor Detail

      • UserServiceTest

        public UserServiceTest()
    • 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()