File tree 2 files changed +34
-2
lines changed
pg/src/test/java/org/bouncycastle/bcpg/test
2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 7
7
import org .bouncycastle .util .encoders .Hex ;
8
8
9
9
import java .io .ByteArrayInputStream ;
10
+ import java .io .IOException ;
11
+ import java .text .ParseException ;
10
12
import java .text .SimpleDateFormat ;
11
13
import java .util .Date ;
12
14
import java .util .TimeZone ;
@@ -16,12 +18,19 @@ public class UnknownPublicKeyPacketTest
16
18
{
17
19
18
20
@ Override
19
- public String getName () {
21
+ public String getName ()
22
+ {
20
23
return "UnknownPublicKeyPacketTest" ;
21
24
}
22
25
23
26
@ Override
24
- public void performTest () throws Exception {
27
+ public void performTest ()
28
+ throws Exception
29
+ {
30
+ parseUnknownV6PublicKey ();
31
+ }
32
+
33
+ private void parseUnknownV6PublicKey () throws ParseException , IOException {
25
34
SimpleDateFormat parser = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss z" );
26
35
parser .setTimeZone (TimeZone .getTimeZone ("UTC" ));
27
36
Original file line number Diff line number Diff line change
1
+ package org .bouncycastle .bcpg .test ;
2
+
3
+ public class UnknownSecretKeyPacketTest
4
+ extends AbstractPacketTest
5
+ {
6
+ @ Override
7
+ public String getName ()
8
+ {
9
+ return "UnknownSecretKeyPacketTest" ;
10
+ }
11
+
12
+ @ Override
13
+ public void performTest ()
14
+ throws Exception
15
+ {
16
+ parseUnknownV6SecretKey ();
17
+ }
18
+
19
+ private void parseUnknownV6SecretKey ()
20
+ {
21
+
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments