Package services.gui
Class ComponentServiceTest
- java.lang.Object
-
- services.gui.ComponentServiceTest
-
public class ComponentServiceTest extends java.lang.ObjectUnit tests for ComponentService.
-
-
Constructor Summary
Constructors Constructor Description ComponentServiceTest()
-
Method Summary
-
-
-
Method Detail
-
initCommonStatics
public static void initCommonStatics()
-
tearDownCommonStatics
public static void tearDownCommonStatics()
-
setup
public void setup()
-
clone_shouldCopyFields_andGenerateNewUuid
public void clone_shouldCopyFields_andGenerateNewUuid()
-
cloneWholeComponent_shouldChangeTitle_andCloneHtmlPath_onSuccess
public void cloneWholeComponent_shouldChangeTitle_andCloneHtmlPath_onSuccess() throws java.io.IOException- Throws:
java.io.IOException
-
cloneWholeComponent_onIOException_shouldKeepOriginalHtmlPath_andStillChangeTitle
public void cloneWholeComponent_onIOException_shouldKeepOriginalHtmlPath_andStillChangeTitle() throws java.io.IOException- Throws:
java.io.IOException
-
bindToProperties_shouldFillFields_andHtmlExistsFlag
public void bindToProperties_shouldFillFields_andHtmlExistsFlag()
-
updateComponentAfterEdit_shouldUpdateSelectedFields_andCallDaoUpdate
public void updateComponentAfterEdit_shouldUpdateSelectedFields_andCallDaoUpdate()
-
createAndPersistComponent_withProperties_shouldBind_thenPersist_andUpdateStudy
public void createAndPersistComponent_withProperties_shouldBind_thenPersist_andUpdateStudy()
-
renameHtmlFilePath_withEmptyNew_shouldPersistEmpty_andNotTouchFS
public void renameHtmlFilePath_withEmptyNew_shouldPersistEmpty_andNotTouchFS() throws java.io.IOException- Throws:
java.io.IOException
-
renameHtmlFilePath_whenCurrentMissing_shouldOnlyPersistNew_andNotRenameFile
public void renameHtmlFilePath_whenCurrentMissing_shouldOnlyPersistNew_andNotRenameFile() throws java.io.IOException- Throws:
java.io.IOException
-
renameHtmlFilePath_whenCurrentExists_shouldOptionallyRename_andPersistNew
public void renameHtmlFilePath_whenCurrentExists_shouldOptionallyRename_andPersistNew() throws java.io.IOException- Throws:
java.io.IOException
-
validate_validComponent_shouldNotThrow
public void validate_validComponent_shouldNotThrow()
-
validate_invalidComponent_shouldThrow
public void validate_invalidComponent_shouldThrow()
-
remove_shouldUpdateStudy_removeResults_andRemoveComponent
public void remove_shouldUpdateStudy_removeResults_andRemoveComponent()
-
-