mirror of https://github.com/apache/maven.git
core it for mng-2254
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@584025 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9f2a215a2
commit
0ff80af1ff
|
@ -159,6 +159,7 @@ public class IntegrationTestSuite
|
|||
suite.addTestSuite( MavenIT0113ServerAuthzAvailableToWagonMgrInPlugin.class );
|
||||
suite.addTestSuite( MavenIT0114ExtensionThatProvidesResources.class );
|
||||
suite.addTestSuite( MavenIT0118AttachedArtifactsInReactor.class );
|
||||
suite.addTestSuite( MavenITmng2254PomEncodingTest.class);
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------
|
||||
// Tests that need to be fixed.
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
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();
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,37 @@
|
|||
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();
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue