/** * We don't expect an exception since encryption is allowed */ public void testManageChangeOfEncryptedPropertyDescriptorEncryptNotAuthorized() throws Exception { testManageChangeOfEncryptedPropertyDescriptor(Boolean.TRUE, false); }
/** * We expect a @link{NotAuthorizedException} since the user tries to decrypt the property although permission is not given */ @Test(expected = NotAuthorizedException.class) public void testManageChangeOfEncryptedPropertyDescriptorDecryptNotAuthorized() throws Exception { testManageChangeOfEncryptedPropertyDescriptor(Boolean.FALSE, false); }
@Test public void testManageChangeOfEncryptedPropertyDescriptorDecrypt() throws Exception { testManageChangeOfEncryptedPropertyDescriptor(Boolean.FALSE, true); }
/** * We don't expect an exception since nothing is changed */ @Test public void testManageChangeOfEncryptedPropertyDescriptorNotAuthorizedWithoutChange() throws Exception { testManageChangeOfEncryptedPropertyDescriptor(null, false); }
@Test public void testManageChangeOfEncryptedPropertyDescriptorEncrypt() throws Exception { testManageChangeOfEncryptedPropertyDescriptor(Boolean.TRUE, true); }
@Test public void testManageChangeOfEncryptedPropertyDescriptorUnchanged() throws Exception { testManageChangeOfEncryptedPropertyDescriptor(null, true); }