Test type inheritance.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163032 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Emmanuel Venisse 2004-09-06 12:10:27 +00:00
parent d4125cbafc
commit 1797335136
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,8 @@ public class DefaultModelInheritanceAssemblerTest
Model child = new Model();
child.setType( "plugin" );
Build childBuild = new Build();
UnitTest childUT = new UnitTest();
@ -107,5 +109,8 @@ public class DefaultModelInheritanceAssemblerTest
assertEquals( "UT resources inherited from parent should be of size 1", 1, utResources.size() );
assertEquals( "first UT resource should have dir == src/test/resources", "src/test/resources",
((Resource) utResources.get( 0 )).getDirectory() );
assertEquals( "plugin", child.getType() );
assertEquals( "jar", parent.getType() );
}
}