refactor call to make it simpler
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@190057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
d5c0325885
commit
4d4f02f2e4
2 files changed
+6
-11
No files matched your search
@@ -37,9 +37,9 @@ public class PomRewriterTest
|
||||
public void testPropertiesRewriting()
|
||||
throws MavenException
|
||||
{
|
||||
Project project = getProject( "pom-with-properties.xml" );
|
||||
String resourceName = "pom-with-properties.xml";
|
||||
|
||||
Model model = PomRewriter.getRewrittenModel( project );
|
||||
Model model = PomRewriter.getRewrittenModel( new File( System.getProperty( "basedir"), "src/test/resources/" + resourceName ), null );
|
||||
|
||||
Dependency dep = (Dependency) model.getDependencies().get( 0 );
|
||||
assertEquals( "check property war.bundle", "true", dep.getProperty( "war.bundle" ) );
|
||||
@@ -51,10 +51,4 @@ public class PomRewriterTest
|
||||
assertEquals( "check num properties", 2, dep.getProperties().size() );
|
||||
}
|
||||
|
||||
private static Project getProject( String resourceName )
|
||||
throws MavenException
|
||||
{
|
||||
// TODO: use a resource if MavenUtils supported it
|
||||
return MavenUtils.getProject( new File( System.getProperty( "basedir"), "src/test/resources/" + resourceName ) );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user