Package controllers.publix
Class PublixTest
- java.lang.Object
-
- controllers.publix.PublixTest
-
public class PublixTest extends java.lang.ObjectUnit tests for Publix controller base class.
-
-
Constructor Summary
Constructors Constructor Description PublixTest()
-
Method Summary
-
-
-
Method Detail
-
initStatics
public static void initStatics()
-
tearDownStatics
public static void tearDownStatics()
-
setUp
public void setUp()
-
startComponent_redirectsOnForbiddenReloadOrNonLinear
public void startComponent_redirectsOnForbiddenReloadOrNonLinear() throws java.lang.Exception- Throws:
java.lang.Exception
-
getInitData_updatesStatesAndReturnsOk
public void getInitData_updatesStatesAndReturnsOk() throws java.lang.Exception- Throws:
java.lang.Exception
-
setStudySessionData_updatesDaoWithTextBody
public void setStudySessionData_updatesDaoWithTextBody() throws PublixException- Throws:
PublixException
-
heartbeat_setsLastSeenAndUpdates
public void heartbeat_setsLastSeenAndUpdates()
-
submitOrAppendResultData_forbiddenIfNoCurrentComponentResult
public void submitOrAppendResultData_forbiddenIfNoCurrentComponentResult() throws PublixException- Throws:
PublixException
-
submitOrAppendResultData_dataSizeTooLarge
public void submitOrAppendResultData_dataSizeTooLarge() throws PublixException- Throws:
PublixException
-
submitOrAppendResultData_appendVsReplace_basedOnFlag
public void submitOrAppendResultData_appendVsReplace_basedOnFlag() throws PublixException- Throws:
PublixException
-
uploadResultFile_forbiddenIfUploadsDisabled
public void uploadResultFile_forbiddenIfUploadsDisabled() throws PublixException- Throws:
PublixException
-
uploadResultFile_missingFile_returnsBadRequest
public void uploadResultFile_missingFile_returnsBadRequest() throws PublixException- Throws:
PublixException
-
uploadResultFile_fileTooLarge_usesCommonMaxSize_returnsBadRequest
public void uploadResultFile_fileTooLarge_usesCommonMaxSize_returnsBadRequest() throws PublixException- Throws:
PublixException
-
uploadResultFile_limitPerStudyRunExceeded_returnsBadRequest
public void uploadResultFile_limitPerStudyRunExceeded_returnsBadRequest() throws PublixException- Throws:
PublixException
-
uploadResultFile_badFilename_returnsBadRequest
public void uploadResultFile_badFilename_returnsBadRequest() throws PublixException- Throws:
PublixException
-
uploadResultFile_success_movesFileAndLogs_ok
public void uploadResultFile_success_movesFileAndLogs_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
downloadResultFile_notFoundIfNoFilePresent
public void downloadResultFile_notFoundIfNoFilePresent() throws PublixException- Throws:
PublixException
-
downloadResultFile_badComponentId_throwsNumberFormat
public void downloadResultFile_badComponentId_throwsNumberFormat() throws PublixException- Throws:
PublixException
-
downloadResultFile_notFound_withComponentId_whenNoFile
public void downloadResultFile_notFound_withComponentId_whenNoFile() throws PublixException- Throws:
PublixException
-
downloadResultFile_success
public void downloadResultFile_success() throws java.lang.Exception- Throws:
java.lang.Exception
-
log_sanitizesAndReturnsOk
public void log_sanitizesAndReturnsOk() throws PublixException- Throws:
PublixException
-
-