1 package org.apache.maven.it;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.it.util.ResourceExtractor;
23
24 import java.io.File;
25
26
27
28
29 public class MavenITmng6084Jsr250PluginTest
30 extends AbstractMavenIntegrationTestCase
31 {
32
33 private File testDir;
34
35 public MavenITmng6084Jsr250PluginTest()
36 {
37 super( "[3.5.1,)" );
38 }
39
40 public void setUp()
41 throws Exception
42 {
43 super.setUp();
44
45 testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-6084-jsr250-support" );
46
47 }
48
49 protected void tearDown()
50 throws Exception
51 {
52
53 super.tearDown();
54 }
55
56 public void testJsr250PluginExecution()
57 throws Exception
58 {
59
60
61
62 Verifier v0 = newVerifier( testDir.getAbsolutePath(), "remote" );
63 v0.setAutoclean( false );
64 v0.deleteDirectory( "target" );
65 v0.deleteArtifacts( "org.apache.maven.its.mng6084" );
66 v0.executeGoal( "install" );
67 v0.verifyErrorFreeLog();
68 v0.resetStreams();
69
70
71
72
73 Verifier v1 = newVerifier( testDir.getAbsolutePath(), "remote" );
74 v1.setAutoclean( false );
75 v1.executeGoal( "org.apache.maven.its.mng6084:jsr250-maven-plugin:0.0.1-SNAPSHOT:hello" );
76 v1.verifyErrorFreeLog();
77 v1.resetStreams();
78 v1.verifyTextInLog( "Hello! I am a component using JSR 250 with @PostConstruct support" );
79
80 }
81
82 }