Class UserControllerTest


  • @SpringBootTest
    @AutoConfigureMockMvc
    @ActiveProfiles("test")
    public class UserControllerTest
    extends java.lang.Object
    • Constructor Detail

      • UserControllerTest

        public UserControllerTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • teardown

        @AfterEach
        public void teardown()
      • getUser_ReturnFirstUserAndStatus_StatusOk

        @Test
        public void getUser_ReturnFirstUserAndStatus_StatusOk()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createUser_PostUserGetResponse_StatusCreated

        @Test
        public void createUser_PostUserGetResponse_StatusCreated()
                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • editUser_UpdateUserGetResponse_StatusOk

        @Test
        public void editUser_UpdateUserGetResponse_StatusOk()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteUser_ShouldDeleteUser_StatusOk

        @Test
        public void deleteUser_ShouldDeleteUser_StatusOk()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getUserActivities_getActivitiesAndRespons_StatusOk

        @Test
        public void getUserActivities_getActivitiesAndRespons_StatusOk()
                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • removeUserFromActivity_ShouldRemoveUserAndGetResponse_StatusOk

        @Test
        public void removeUserFromActivity_ShouldRemoveUserAndGetResponse_StatusOk()
                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getFutureActivities_ShouldReturnFutureActivities_StatusOk

        @Test
        public void getFutureActivities_ShouldReturnFutureActivities_StatusOk()
                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getOrganizedActivities_ShouldReturnOrganizedActivities_StatusOk

        @Test
        public void getOrganizedActivities_ShouldReturnOrganizedActivities_StatusOk()
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception