Package services.publix
Class PublixUtilsTest
- java.lang.Object
-
- services.publix.PublixUtilsTest
-
public class PublixUtilsTest extends java.lang.ObjectUnit tests for PublixUtils.
-
-
Constructor Summary
Constructors Constructor Description PublixUtilsTest()
-
Method Summary
-
-
-
Method Detail
-
initStatics
public static void initStatics()
-
tearDownStatics
public static void tearDownStatics()
-
setup
public void setup()
-
retrieveFirstActiveComponent_returnsFirstActive
public void retrieveFirstActiveComponent_returnsFirstActive() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveFirstActiveComponent_throwsWhenNoneActive
public void retrieveFirstActiveComponent_throwsWhenNoneActive() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveComponent_success
public void retrieveComponent_success() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveComponent_notFound
public void retrieveComponent_notFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveComponent_wrongStudy
public void retrieveComponent_wrongStudy() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveComponent_inactive
public void retrieveComponent_inactive() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveCurrentComponentResult_returnsPresentIfNotDone
public void retrieveCurrentComponentResult_returnsPresentIfNotDone()
-
retrieveCurrentComponentResult_returnsEmptyIfDone
public void retrieveCurrentComponentResult_returnsEmptyIfDone()
-
retrieveStartedComponentResult_returnsExistingCurrent
public void retrieveStartedComponentResult_returnsExistingCurrent() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveStartedComponentResult_startsNewIfNone
public void retrieveStartedComponentResult_startsNewIfNone() throws java.lang.Exception- Throws:
java.lang.Exception
-
startComponent_allowsReloadWhenReloadable
public void startComponent_allowsReloadWhenReloadable() throws java.lang.Exception- Throws:
java.lang.Exception
-
startComponent_forbidsReloadWhenNotReloadable
public void startComponent_forbidsReloadWhenNotReloadable()
-
startComponent_forbidsNonLinearFlow
public void startComponent_forbidsNonLinearFlow()
-
finishStudyResult_successful
public void finishStudyResult_successful()
-
finishStudyResult_unsuccessful
public void finishStudyResult_unsuccessful()
-
abortStudy_setsAbortedAndPurgesAndRemoves
public void abortStudy_setsAbortedAndPurgesAndRemoves() throws java.io.IOException- Throws:
java.io.IOException
-
setPreStudyState_transitionsWhenMovedBeyondFirst
public void setPreStudyState_transitionsWhenMovedBeyondFirst() throws java.lang.Exception- Throws:
java.lang.Exception
-
setPreStudyState_keepsPreOnFirstComponent
public void setPreStudyState_keepsPreOnFirstComponent() throws java.lang.Exception- Throws:
java.lang.Exception
-
isFirstComponentInPreviewStudy_trueOnlyOnFirstAndPre
public void isFirstComponentInPreviewStudy_trueOnlyOnFirstAndPre() throws java.lang.Exception- Throws:
java.lang.Exception
-
setUrlQueryParameter_extractsAndStoresJson
public void setUrlQueryParameter_extractsAndStoresJson()
-
retrieveSignedinUser_successAndFailures
public void retrieveSignedinUser_successAndFailures() throws java.lang.Exception- Throws:
java.lang.Exception
-
fetchJatosRunFromSession_parsesValueOrThrows
public void fetchJatosRunFromSession_parsesValueOrThrows() throws java.lang.Exception- Throws:
java.lang.Exception
-
retrieveLastUploadedResultFile_returnsLastExisting
public void retrieveLastUploadedResultFile_returnsLastExisting() throws java.lang.Exception- Throws:
java.lang.Exception
-
-