01: package org.bouncycastle.asn1.test;
02:
03: import java.io.IOException;
04:
05: import org.bouncycastle.asn1.x509.ReasonFlags;
06: import org.bouncycastle.util.test.SimpleTest;
07:
08: public class ReasonFlagsTest extends SimpleTest {
09: public String getName() {
10: return "ReasonFlags";
11: }
12:
13: public void performTest() throws IOException {
14: BitStringConstantTester.testFlagValueCorrect(0,
15: ReasonFlags.unused);
16: BitStringConstantTester.testFlagValueCorrect(1,
17: ReasonFlags.keyCompromise);
18: BitStringConstantTester.testFlagValueCorrect(2,
19: ReasonFlags.cACompromise);
20: BitStringConstantTester.testFlagValueCorrect(3,
21: ReasonFlags.affiliationChanged);
22: BitStringConstantTester.testFlagValueCorrect(4,
23: ReasonFlags.super seded);
24: BitStringConstantTester.testFlagValueCorrect(5,
25: ReasonFlags.cessationOfOperation);
26: BitStringConstantTester.testFlagValueCorrect(6,
27: ReasonFlags.certificateHold);
28: BitStringConstantTester.testFlagValueCorrect(7,
29: ReasonFlags.privilegeWithdrawn);
30: BitStringConstantTester.testFlagValueCorrect(8,
31: ReasonFlags.aACompromise);
32: }
33:
34: public static void main(String[] args) {
35: runTest(new ReasonFlagsTest());
36: }
37: }
|