| package org.apache.maven.integrationtests; |
| |
| import java.io.File; |
| import java.util.ArrayList; |
| import java.util.List; |
| |
| import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; |
| import org.apache.maven.it.Verifier; |
| import org.apache.maven.it.util.ResourceExtractor; |
| |
| /** |
| * Test that pom.xml encoding is properly detected. |
| * |
| * @author <a href="mailto:herve.boutemy@free.fr">Herve Boutemy</a> |
| * |
| */ |
| public class MavenITmng2254PomEncodingTest |
| extends AbstractMavenIntegrationTestCase |
| { |
| public void testitMNG2254 () |
| throws Exception |
| { |
| // The testdir is computed from the location of this |
| // file. |
| File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2254-PomEncoding" ); |
| |
| Verifier verifier = new Verifier( testDir.getAbsolutePath() ); |
| |
| List cliOptions = new ArrayList(); |
| cliOptions.add( "-N" ); |
| verifier.executeGoal( "compile" ); |
| |
| verifier.verifyErrorFreeLog(); |
| |
| verifier.resetStreams(); |
| } |
| } |