diff --git a/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java b/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java index 2405a19292..f12b171fd0 100644 --- a/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java +++ b/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java @@ -336,6 +336,16 @@ public class PomConstructionTest assertEquals( null, pom.getValue( "distributionManagement/site/name" ) ); } + public void testXmlTextCoalescing() + throws Exception + { + PomTestWrapper pom = buildPom( "xml-coalesce-text" ); + assertEquals( "A Test Project Property", pom.getValue( "properties/prop0" ) ); + assertEquals( "That's a test!", pom.getValue( "properties/prop1" ) ); + assertEquals( 32 * 1024, + pom.getValue( "properties/prop2" ).toString().trim().replaceAll( "[\n\r]", "" ).length() ); + } + private PomArtifactResolver artifactResolver( String basedir ) { return new FileBasedPomArtifactResolver( new File( BASE_POM_DIR, basedir ) ); diff --git a/maven-project/src/test/resources-project-builder/xml-coalesce-text/pom.xml b/maven-project/src/test/resources-project-builder/xml-coalesce-text/pom.xml new file mode 100644 index 0000000000..f7742fd72e --- /dev/null +++ b/maven-project/src/test/resources-project-builder/xml-coalesce-text/pom.xml @@ -0,0 +1,567 @@ + + + + + + 4.0.0 + + org.apache.maven.its.mng3839 + coreit + 0.1 + jar + + Maven Integration Test :: MNG-3839 + + Test that POM parsing properly coalesces text data. + + + + + A ProjectProperty + + + That's a test! + + + +00 KB 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +0 1 2 3 4 5 6 X +01 KB 1 2 3 4 5 6 X +0 1 2 3 4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