Package services.gui
Class AuthorizationServiceTest
- java.lang.Object
-
- services.gui.AuthorizationServiceTest
-
public class AuthorizationServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AuthorizationServiceTest()
-
Method Summary
-
-
-
Method Detail
-
tearDown
public void tearDown()
-
canUserAccessComponent_nullComponent_throwsNotFound
public void canUserAccessComponent_nullComponent_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessBatch_nullBatch_throwsNotFound
public void canUserAccessBatch_nullBatch_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudyLink_nullStudyLink_throwsNotFound
public void canUserAccessStudyLink_nullStudyLink_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessGroupResult_nullGroupResult_throwsNotFound
public void canUserAccessGroupResult_nullGroupResult_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessComponentResult_nullComponentResult_throwsNotFound
public void canUserAccessComponentResult_nullComponentResult_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudyResult_nullStudyResult_throwsNotFound
public void canUserAccessStudyResult_nullStudyResult_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessWorker_nullWorker_throwsNotFound
public void canUserAccessWorker_nullWorker_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudy_lockedStudy_respectsFlag
public void canUserAccessStudy_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkStudyNotLocked_lockedStudy_throwsForbidden
public void checkStudyNotLocked_lockedStudy_throwsForbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudyLink_lockedStudy_respectsFlag
public void canUserAccessStudyLink_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkAdminOrSelf_adminOrSelf_ok_otherForbidden
public void checkAdminOrSelf_adminOrSelf_ok_otherForbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessWorker_userHasWorkerInStudy_ok
public void canUserAccessWorker_userHasWorkerInStudy_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessComponent_andStudyLink_withSuperuser_ok
public void canUserAccessComponent_andStudyLink_withSuperuser_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudy_notMemberOrSuperuser_throwsForbidden
public void canUserAccessStudy_notMemberOrSuperuser_throwsForbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessResults_chain_ok
public void canUserAccessResults_chain_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudy_nullStudy_throwsNotFound
public void canUserAccessStudy_nullStudy_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessComponent_lockedStudy_respectsFlag
public void canUserAccessComponent_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessBatch_lockedStudy_respectsFlag
public void canUserAccessBatch_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessGroupResult_lockedStudy_respectsFlag
public void canUserAccessGroupResult_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessComponentResult_lockedStudy_respectsFlag
public void canUserAccessComponentResult_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudyResult_lockedStudy_respectsFlag
public void canUserAccessStudyResult_lockedStudy_respectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkAdminOrSelf_nullUser_throwsNotFound
public void checkAdminOrSelf_nullUser_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkNotDefaultBatch_defaultBatch_throwsForbidden
public void checkNotDefaultBatch_defaultBatch_throwsForbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkNotDefaultBatch_nonDefaultBatch_ok
public void checkNotDefaultBatch_nonDefaultBatch_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessWorker_userMissingWorker_forbidden
public void canUserAccessWorker_userMissingWorker_forbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessComponentResults_list_ok_andLockedRespectsFlag
public void canUserAccessComponentResults_list_ok_andLockedRespectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
canUserAccessStudyResults_list_ok_andLockedRespectsFlag
public void canUserAccessStudyResults_list_ok_andLockedRespectsFlag() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkAuthMethodIsDbOrLdap_nullUser_throwsNotFound
public void checkAuthMethodIsDbOrLdap_nullUser_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkAuthMethodIsDbOrLdap_user_ok_andInvalidForbidden
public void checkAuthMethodIsDbOrLdap_user_ok_andInvalidForbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkNotUserAdmin_nullUser_throwsNotFound
public void checkNotUserAdmin_nullUser_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkNotUserAdmin_adminUser_throwsForbidden
public void checkNotUserAdmin_adminUser_throwsForbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkNotUserAdmin_nonAdmin_ok
public void checkNotUserAdmin_nonAdmin_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkSignedinUserAllowedToChangeUser_adminPasswordChange_forbidden
public void checkSignedinUserAllowedToChangeUser_adminPasswordChange_forbidden()
-
checkSignedinUserAllowedToChangeUser_adminDeactivate_forbidden
public void checkSignedinUserAllowedToChangeUser_adminDeactivate_forbidden()
-
checkSignedinUserAllowedToChangeUser_selfDeactivate_forbidden
public void checkSignedinUserAllowedToChangeUser_selfDeactivate_forbidden()
-
checkSignedinUserAllowedToChangeUser_ldapPasswordChange_forbidden
public void checkSignedinUserAllowedToChangeUser_ldapPasswordChange_forbidden()
-
checkSignedinUserAllowedToChangeUser_allowed_ok
public void checkSignedinUserAllowedToChangeUser_allowed_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkSignedinUserAllowedToAccessUser_nullUser_throwsNotFound
public void checkSignedinUserAllowedToAccessUser_nullUser_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkSignedinUserAllowedToAccessUser_self_ok
public void checkSignedinUserAllowedToAccessUser_self_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkSignedinUserAllowedToAccessUser_adminToNonAdmin_ok
public void checkSignedinUserAllowedToAccessUser_adminToNonAdmin_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkSignedinUserAllowedToAccessUser_adminToAdmin_forbidden
public void checkSignedinUserAllowedToAccessUser_adminToAdmin_forbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkSignedinUserAllowedToAccessUser_otherUser_forbidden
public void checkSignedinUserAllowedToAccessUser_otherUser_forbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkUserAllowedToAccessApiToken_nullToken_throwsNotFound
public void checkUserAllowedToAccessApiToken_nullToken_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkUserAllowedToAccessApiToken_adminToNonAdmin_ok
public void checkUserAllowedToAccessApiToken_adminToNonAdmin_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkUserAllowedToAccessApiToken_otherUser_forbidden
public void checkUserAllowedToAccessApiToken_otherUser_forbidden() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkUserExists_null_throwsNotFound
public void checkUserExists_null_throwsNotFound() throws java.lang.Exception- Throws:
java.lang.Exception
-
checkUserExists_user_ok
public void checkUserExists_user_ok() throws java.lang.Exception- Throws:
java.lang.Exception
-
-