TestEncryptionIv.java
1 |
package com.goldencode.testcases.security.security_policy.attributes; |
---|---|
2 |
|
3 |
import com.goldencode.p2j.util.*; |
4 |
import com.goldencode.p2j.ui.*; |
5 |
|
6 |
import static com.goldencode.p2j.util.BlockManager.*; |
7 |
import static com.goldencode.p2j.util.InternalEntry.Type; |
8 |
import static com.goldencode.p2j.ui.LogicalTerminal.*; |
9 |
import static com.goldencode.p2j.util.ErrorManager.*; |
10 |
|
11 |
/**
|
12 |
* Business logic (converted to Java from the 4GL source code
|
13 |
* in security/security_policy/attributes/test-encryption-iv.p).
|
14 |
*/
|
15 |
public class TestEncryptionIv |
16 |
{ |
17 |
/**
|
18 |
* External procedure (converted to Java from the 4GL source code
|
19 |
* in security/security_policy/attributes/test-encryption-iv.p).
|
20 |
*/
|
21 |
@LegacySignature(type = Type.MAIN, name = "security/security_policy/attributes/test-encryption-iv.p") |
22 |
public void execute() |
23 |
{ |
24 |
externalProcedure(TestEncryptionIv.this, new Block((Body) () ->
|
25 |
{ |
26 |
silent(() -> SecurityPolicyManager.setSymmetricEncryptionAlgorithm(new character("test"))); |
27 |
message(ErrorManager.isError());
|
28 |
message(ErrorManager.numErrors());
|
29 |
; |
30 |
message(ErrorManager.isError());
|
31 |
message(ErrorManager.numErrors());
|
32 |
})); |
33 |
} |
34 |
} |