1 package org.apache.maven.project.inheritance; 2 3 18 19 import org.apache.maven.project.AbstractMavenProjectTestCase; 20 21 import java.io.File ; 22 23 27 public abstract class AbstractProjectInheritanceTestCase 28 extends AbstractMavenProjectTestCase 29 { 30 protected String getTestSeries() 31 { 32 String className = getClass().getPackage().getName(); 33 34 return className.substring( className.lastIndexOf( "." ) + 1 ); 35 } 36 37 protected File projectFile( String name ) 38 { 39 return new File ( getLocalRepositoryPath(), "/maven/poms/" + name + "-1.0.pom" ); 40 } 41 42 46 protected File getLocalRepositoryPath() 47 { 48 return getTestFile( "src/test/resources/inheritance-repo/" + getTestSeries() ); 49 } 50 } 51 | Popular Tags |