Package services.gui
Class ComponentServiceIntegrationTest
- java.lang.Object
-
- testutils.JatosTest
-
- services.gui.ComponentServiceIntegrationTest
-
public class ComponentServiceIntegrationTest extends JatosTest
Tests for ComponentService
-
-
Field Summary
-
Fields inherited from class testutils.JatosTest
admin, apiToken, application, jpaApi, TEST_RESOURCES_POTATO_COMPASS_JZIP
-
-
Constructor Summary
Constructors Constructor Description ComponentServiceIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbindToProperties_shouldReflectHtmlFileExists()voidclone_shouldCopyFieldsAndGenerateNewUuid_withoutPersist()voidcreateAndPersistComponent_fromProps_addsToStudyAndPersists()voidgetComponentFromIdOrUuid_shouldReturnValidComponent()voidremove_shouldRemoveFromStudy()voidrenameHtmlFilePath_currentFileNotExistNewFileExist()voidrenameHtmlFilePath_currentFileNotExistNewFileNotExist()voidrenameHtmlFilePath_newHtmlFilePathExists()voidrenameHtmlFilePath_successfulRename()voidrenameHtmlFilePath_withEmptyString()voidrenameHtmlFilePath_withSubFolder()voidupdateComponentAfterEdit_shouldUpdateSelectedFields()voidvalidate_invalidTitle_shouldThrowValidationException()-
Methods inherited from class testutils.JatosTest
createApiToken, createUser, dropDatabase, getAdmin, getStudy, importAndGetExampleStudy, importExampleStudy, removeAllLogs, removeAllResultUploads, removeAllStudyAssets, removeAllStudyLogs, removeUser, startApp, stopApp
-
-
-
-
Method Detail
-
clone_shouldCopyFieldsAndGenerateNewUuid_withoutPersist
public void clone_shouldCopyFieldsAndGenerateNewUuid_withoutPersist()
-
bindToProperties_shouldReflectHtmlFileExists
public void bindToProperties_shouldReflectHtmlFileExists()
-
updateComponentAfterEdit_shouldUpdateSelectedFields
public void updateComponentAfterEdit_shouldUpdateSelectedFields()
-
createAndPersistComponent_fromProps_addsToStudyAndPersists
public void createAndPersistComponent_fromProps_addsToStudyAndPersists()
-
renameHtmlFilePath_successfulRename
public void renameHtmlFilePath_successfulRename()
-
renameHtmlFilePath_newHtmlFilePathExists
public void renameHtmlFilePath_newHtmlFilePathExists()
-
renameHtmlFilePath_withSubFolder
public void renameHtmlFilePath_withSubFolder()
-
renameHtmlFilePath_currentFileNotExistNewFileNotExist
public void renameHtmlFilePath_currentFileNotExistNewFileNotExist()
-
renameHtmlFilePath_currentFileNotExistNewFileExist
public void renameHtmlFilePath_currentFileNotExistNewFileExist()
-
renameHtmlFilePath_withEmptyString
public void renameHtmlFilePath_withEmptyString()
-
validate_invalidTitle_shouldThrowValidationException
public void validate_invalidTitle_shouldThrowValidationException()
-
getComponentFromIdOrUuid_shouldReturnValidComponent
public void getComponentFromIdOrUuid_shouldReturnValidComponent()
-
remove_shouldRemoveFromStudy
public void remove_shouldRemoveFromStudy()
-
-