mirror of https://github.com/apache/maven.git
o Refactored code
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@722536 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
318a849b58
commit
213553df7b
|
@ -46,21 +46,7 @@ public class MavenITmng3873MultipleExecutionGoalsTest
|
|||
public void testitWithoutPluginManagement()
|
||||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3873" );
|
||||
|
||||
Verifier verifier = new Verifier( new File( testDir, "test-1" ).getAbsolutePath() );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.deleteDirectory( "target" );
|
||||
verifier.executeGoal( "validate" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
/*
|
||||
* NOTE: We deliberately don't check the exact order here, that's another issue.
|
||||
*/
|
||||
List lines = verifier.loadLines( "target/it.log", "UTF-8" );
|
||||
assertTrue( lines.toString(), lines.contains( "test" ) );
|
||||
assertTrue( lines.toString(), lines.contains( "----" ) );
|
||||
testitMNG3873( "test-1" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,10 +55,16 @@ public class MavenITmng3873MultipleExecutionGoalsTest
|
|||
*/
|
||||
public void testitWithPluginManagement()
|
||||
throws Exception
|
||||
{
|
||||
testitMNG3873( "test-2" );
|
||||
}
|
||||
|
||||
private void testitMNG3873( String project )
|
||||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3873" );
|
||||
|
||||
Verifier verifier = new Verifier( new File( testDir, "test-2" ).getAbsolutePath() );
|
||||
Verifier verifier = new Verifier( new File( testDir, project ).getAbsolutePath() );
|
||||
verifier.setAutoclean( false );
|
||||
verifier.deleteDirectory( "target" );
|
||||
verifier.executeGoal( "validate" );
|
||||
|
|
Loading…
Reference in New Issue