Package idatt2106.group3.backend.Web
Class UserControllerTest
- java.lang.Object
-
- idatt2106.group3.backend.Web.UserControllerTest
-
@SpringBootTest @AutoConfigureMockMvc @ActiveProfiles("test") public class UserControllerTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UserControllerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createUser_PostUserGetResponse_StatusCreated()
void
deleteUser_ShouldDeleteUser_StatusOk()
void
editUser_UpdateUserGetResponse_StatusOk()
void
getFutureActivities_ShouldReturnFutureActivities_StatusOk()
void
getOrganizedActivities_ShouldReturnOrganizedActivities_StatusOk()
void
getUser_ReturnFirstUserAndStatus_StatusOk()
void
getUserActivities_getActivitiesAndRespons_StatusOk()
void
removeUserFromActivity_ShouldRemoveUserAndGetResponse_StatusOk()
void
setup()
void
teardown()
-
-
-
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
-
-