1 package org.codehaus.mojo.keytool.requests;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.maven.shared.utils.cli.javatool.JavaToolResult;
20
21 import java.io.File;
22
23
24
25
26
27
28
29 public abstract class AbstractKeyToolGenerateSecretKeyRequestIT
30 extends AbstractKeyToolRequestIT<KeyToolGenerateSecretKeyRequest>
31 {
32
33 protected AbstractKeyToolGenerateSecretKeyRequestIT()
34 {
35 }
36
37 protected AbstractKeyToolGenerateSecretKeyRequestIT( boolean supportedRequest )
38 {
39 super( supportedRequest );
40 }
41
42 @Override
43 public final void testRequest()
44 throws Exception
45 {
46
47 File keyStore = resourceFixtures.simpleKeyStore();
48
49 KeyToolGenerateSecretKeyRequest request = requestFixtures.createKeyToolGenerateSecretKeyRequest( keyStore );
50
51 JavaToolResult keyToolResult = consumeRequest( request );
52
53 requestResult( keyToolResult, keyStore );
54 }
55
56 protected abstract void requestResult( JavaToolResult keyToolResult, File keyStore );
57 }