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 java.io.File;
23
24 import org.apache.maven.it.util.ResourceExtractor;
25 import org.apache.maven.shared.utils.io.FileUtils;
26
27
28
29
30
31
32 public class MavenITmng3503Xpp3ShadingTest
33 extends AbstractMavenIntegrationTestCase
34 {
35 public MavenITmng3503Xpp3ShadingTest()
36 {
37 super( "(2.0.9,2.1.0-M1),(2.1.0-M1,)" );
38 }
39
40 public void testitMNG3503NoLinkageErrors()
41 throws Exception
42 {
43 File dir =
44 ResourceExtractor.simpleExtractResources( getClass(), "/mng-3503/mng-3503-xpp3Shading-pu11" );
45
46 Verifier verifier;
47
48 verifier = newVerifier( dir.getAbsolutePath() );
49
50 verifier.executeGoal( "validate" );
51
52 verifier.verifyErrorFreeLog();
53
54 verifier.resetStreams();
55
56 assertEquals( "<root />", FileUtils.fileRead( new File( dir, "target/serialized.xml" ), "UTF-8" ) );
57 }
58
59 public void testitMNG3503Xpp3Shading()
60 throws Exception
61 {
62 File dir =
63 ResourceExtractor.simpleExtractResources( getClass(), "/mng-3503/mng-3503-xpp3Shading-pu-new" );
64 Verifier verifier = newVerifier( dir.getAbsolutePath() );
65
66 verifier.executeGoal( "validate" );
67
68 verifier.verifyErrorFreeLog();
69
70 verifier.resetStreams();
71
72 assertEquals( "root", FileUtils.fileRead( new File( dir, "target/serialized.xml" ), "UTF-8" ) );
73 }
74 }