Package services.gui
Class StudyServiceIntegrationTest
- java.lang.Object
-
- testutils.JatosTest
-
- services.gui.StudyServiceIntegrationTest
-
public class StudyServiceIntegrationTest extends JatosTest
Tests for StudyService modeled after UserServiceTest
-
-
Field Summary
-
Fields inherited from class testutils.JatosTest
admin, apiToken, application, jpaApi, TEST_RESOURCES_POTATO_COMPASS_JZIP
-
-
Constructor Summary
Constructors Constructor Description StudyServiceIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAddAndRemoveAllUserMember()StudyService.addAllUserMembers(): adding all users to the members of a study StudyService.removeAllUserMembers(): remove all users from the members of a studyvoidcheckBindToStudy()StudyService.bindToStudyWithoutDirName(): Update properties of study with properties of updatedStudy (excluding study's dir name).voidcheckChangeComponentPosition()StudyService.changeComponentPosition(): change the position of a component within the study (hint: the first position is 1 and not 0)voidcheckChangeUserMember()StudyService.changeUserMember(): adding or deletion of the users to the members of a studyvoidcheckChangeUserMemberAtLeastOne()StudyService.changeUserMember(): study must have at least one member uservoidcheckChangeUserMemberDouble()StudyService.changeUserMember(): adding or deletion of the same user twice shouldn't change the outcomevoidcheckClone()StudyService.clone(): clones a study but does not persist.voidcheckCreateAndPersistStudyAndAssetsDirFromProperties()voidcheckCreateAndPersistStudyFromEntity()voidcheckGetStudyFromIdOrUuid()voidcheckGetStudyFromIdOrUuidNotFound()voidcheckRemove()StudyService.remove()voidcheckRenameStudyAssetsDir()StudyService.renameStudyAssetsDir()voidcheckUpdateStudyAndRenameAssets()-
Methods inherited from class testutils.JatosTest
createApiToken, createUser, dropDatabase, getAdmin, getStudy, importAndGetExampleStudy, importExampleStudy, removeAllLogs, removeAllResultUploads, removeAllStudyAssets, removeAllStudyLogs, removeUser, startApp, stopApp
-
-
-
-
Method Detail
-
checkClone
public void checkClone()
StudyService.clone(): clones a study but does not persist. This includes the Components, Batches and asset directory.
-
checkChangeUserMember
public void checkChangeUserMember()
StudyService.changeUserMember(): adding or deletion of the users to the members of a study
-
checkAddAndRemoveAllUserMember
public void checkAddAndRemoveAllUserMember()
StudyService.addAllUserMembers(): adding all users to the members of a study StudyService.removeAllUserMembers(): remove all users from the members of a study
-
checkChangeUserMemberDouble
public void checkChangeUserMemberDouble()
StudyService.changeUserMember(): adding or deletion of the same user twice shouldn't change the outcome
-
checkChangeUserMemberAtLeastOne
public void checkChangeUserMemberAtLeastOne()
StudyService.changeUserMember(): study must have at least one member user
-
checkChangeComponentPosition
public void checkChangeComponentPosition()
StudyService.changeComponentPosition(): change the position of a component within the study (hint: the first position is 1 and not 0)
-
checkBindToStudy
public void checkBindToStudy()
StudyService.bindToStudyWithoutDirName(): Update properties of study with properties of updatedStudy (excluding study's dir name).
-
checkRenameStudyAssetsDir
public void checkRenameStudyAssetsDir()
StudyService.renameStudyAssetsDir()
-
checkRemove
public void checkRemove()
StudyService.remove()
-
checkCreateAndPersistStudyAndAssetsDirFromProperties
public void checkCreateAndPersistStudyAndAssetsDirFromProperties()
-
checkCreateAndPersistStudyFromEntity
public void checkCreateAndPersistStudyFromEntity()
-
checkUpdateStudyAndRenameAssets
public void checkUpdateStudyAndRenameAssets()
-
checkGetStudyFromIdOrUuid
public void checkGetStudyFromIdOrUuid()
-
checkGetStudyFromIdOrUuidNotFound
public void checkGetStudyFromIdOrUuidNotFound()
-
-