public class PublixUtilsTest
extends java.lang.Object
| Constructor and Description |
|---|
PublixUtilsTest() |
public static void initStatics()
public static void tearDownStatics()
public void setup()
public void retrieveFirstActiveComponent_returnsFirstActive()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveFirstActiveComponent_throwsWhenNoneActive()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveComponent_success()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveComponent_notFound()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveComponent_wrongStudy()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveComponent_inactive()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveCurrentComponentResult_returnsPresentIfNotDone()
public void retrieveCurrentComponentResult_returnsEmptyIfDone()
public void retrieveStartedComponentResult_returnsExistingCurrent()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveStartedComponentResult_startsNewIfNone()
throws java.lang.Exception
java.lang.Exceptionpublic void startComponent_allowsReloadWhenReloadable()
throws java.lang.Exception
java.lang.Exceptionpublic void startComponent_forbidsReloadWhenNotReloadable()
public void startComponent_forbidsNonLinearFlow()
public void finishStudyResult_successful()
public void finishStudyResult_unsuccessful()
public void abortStudy_setsAbortedAndPurgesAndRemoves()
throws java.io.IOException
java.io.IOExceptionpublic void setPreStudyState_transitionsWhenMovedBeyondFirst()
throws java.lang.Exception
java.lang.Exceptionpublic void setPreStudyState_keepsPreOnFirstComponent()
throws java.lang.Exception
java.lang.Exceptionpublic void isFirstComponentInPreviewStudy_trueOnlyOnFirstAndPre()
throws java.lang.Exception
java.lang.Exceptionpublic void setUrlQueryParameter_extractsAndStoresJson()
public void retrieveSignedinUser_successAndFailures()
throws java.lang.Exception
java.lang.Exceptionpublic void fetchJatosRunFromSession_parsesValueOrThrows()
throws java.lang.Exception
java.lang.Exceptionpublic void retrieveLastUploadedResultFile_returnsLastExisting()
throws java.lang.Exception
java.lang.Exception