Package idatt2106.group3.backend.Service
Class ActivityServiceTest
- java.lang.Object
-
- idatt2106.group3.backend.Service.ActivityServiceTest
-
@SpringBootTest @ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) @ActiveProfiles("test") public class ActivityServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ActivityServiceTest()
-
Method Summary
-
-
-
Method Detail
-
setup
@BeforeEach public void setup()
-
getActivity_IdExists_ActivityIsCorrect
@Test public void getActivity_IdExists_ActivityIsCorrect()
-
getActivity_IdDoesNotExist_ReturnNull
@Test public void getActivity_IdDoesNotExist_ReturnNull()
-
getActivities_ReturnListAndStatus_ListNotNull
@Test public void getActivities_ReturnListAndStatus_ListNotNull()
-
createActivity_ReturnActivityDTOOfCreatedActivity_ActivityIsCorrect
@Test public void createActivity_ReturnActivityDTOOfCreatedActivity_ActivityIsCorrect()
-
editActivity_ReturnEditedActivity_ActivityIsCorrectlyEdited
@Test public void editActivity_ReturnEditedActivity_ActivityIsCorrectlyEdited()
-
editActivity_ActivityDoesNotExist_ReturnsNull
@Test public void editActivity_ActivityDoesNotExist_ReturnsNull()
-
deleteUser_ActivityDoesNotExist_ReturnsFalse
@Test public void deleteUser_ActivityDoesNotExist_ReturnsFalse()
-
deleteUser_ActivityExistsButIsFinished_ReturnsFalse
@Test public void deleteUser_ActivityExistsButIsFinished_ReturnsFalse()
-
deleteUser_ActivityExistsAndIsInFuture_ReturnsTrue
@Test public void deleteUser_ActivityExistsAndIsInFuture_ReturnsTrue()
-
addUserToActivity_ActivityDoesNotExist_ReturnsFalse
@Test public void addUserToActivity_ActivityDoesNotExist_ReturnsFalse()
-
addUserToActivity_ActivityIsFull_ReturnsFalse
@Test public void addUserToActivity_ActivityIsFull_ReturnsFalse()
-
addUserToActivity_UserDoesNotExist_ReturnsFalse
@Test public void addUserToActivity_UserDoesNotExist_ReturnsFalse()
-
addUserToActivity_UserActivitiesIsNull_ReturnsFalse
@Test public void addUserToActivity_UserActivitiesIsNull_ReturnsFalse()
-
addUserToActivity_UserAddedToActivity_ReturnsTrue
@Test public void addUserToActivity_UserAddedToActivity_ReturnsTrue()
-
getChat_ActivityDoesNotExist_ReturnsNull
@Test public void getChat_ActivityDoesNotExist_ReturnsNull()
-
getChat_ActivityExists_ReturnsChat
@Test public void getChat_ActivityExists_ReturnsChat()
-
checkIfOrganizerOfActivity_ActivityDoesNotExist_ReturnsFalse
@Test public void checkIfOrganizerOfActivity_ActivityDoesNotExist_ReturnsFalse()
-
checkIfOrganizerOfActivity_NotOrganizerOfActivity_ReturnsFalse
@Test public void checkIfOrganizerOfActivity_NotOrganizerOfActivity_ReturnsFalse()
-
checkIfOrganizerOfActivity_OrganizerOfActivity_ReturnsTrue
@Test public void checkIfOrganizerOfActivity_OrganizerOfActivity_ReturnsTrue()
-
checkIfParticipant_NotParticipantOfActivity_ReturnsFalse
@Test public void checkIfParticipant_NotParticipantOfActivity_ReturnsFalse()
-
checkIfParticipant_ParticipantOfActivity_ReturnsTrue
@Test public void checkIfParticipant_ParticipantOfActivity_ReturnsTrue()
-
markAbsent_ActivityDoesNotExist_ReturnsEmptySet
@Test public void markAbsent_ActivityDoesNotExist_ReturnsEmptySet()
-
markAbsent_ActivityExists_ReturnsUserIdsOfAbsentUsers
@Test public void markAbsent_ActivityExists_ReturnsUserIdsOfAbsentUsers()
-
getUsers_ActivityDoesNotExist_ReturnsEmptySet
@Test public void getUsers_ActivityDoesNotExist_ReturnsEmptySet()
-
getUsers_ActivityExists_ReturnsSetOfUserNameDTOs
@Test public void getUsers_ActivityExists_ReturnsSetOfUserNameDTOs()
-
-