maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r1039329 - /maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java
Date Fri, 26 Nov 2010 12:24:26 GMT
Author: bentmann
Date: Fri Nov 26 12:24:25 2010
New Revision: 1039329

URL: http://svn.apache.org/viewvc?rev=1039329&view=rev
Log:
o Used generics

Modified:
    maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java

Modified: maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java?rev=1039329&r1=1039328&r2=1039329&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java
(original)
+++ maven/maven-3/trunk/maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java
Fri Nov 26 12:24:25 2010
@@ -96,7 +96,7 @@ public class MavenProjectTest
 
         MavenProject clonedProject = (MavenProject) projectToClone.clone();
         assertEquals( "maven-core", clonedProject.getArtifactId() );
-        Map clonedMap = clonedProject.getManagedVersionMap();
+        Map<?, ?> clonedMap = clonedProject.getManagedVersionMap();
         assertNotNull( "ManagedVersionMap not copied", clonedMap );
         assertTrue( "ManagedVersionMap is not empty", clonedMap.isEmpty() );
     }
@@ -108,17 +108,17 @@ public class MavenProjectTest
         MavenProject projectToClone = getProjectWithDependencies( f );
         DependencyManagement dep = projectToClone.getDependencyManagement();
         assertNotNull( "No dependencyManagement", dep );
-        List list = dep.getDependencies();
+        List<?> list = dep.getDependencies();
         assertNotNull( "No dependencies", list );
         assertTrue( "Empty dependency list", !list.isEmpty() );
 
-        Map map = projectToClone.getManagedVersionMap();
+        Map<?, ?> map = projectToClone.getManagedVersionMap();
         assertNotNull( "No ManagedVersionMap", map );
         assertTrue( "ManagedVersionMap is empty", !map.isEmpty() );
 
         MavenProject clonedProject = (MavenProject) projectToClone.clone();
         assertEquals( "maven-core", clonedProject.getArtifactId() );
-        Map clonedMap = clonedProject.getManagedVersionMap();
+        Map<?, ?> clonedMap = clonedProject.getManagedVersionMap();
         assertNotNull( "ManagedVersionMap not copied", clonedMap );
         assertTrue( "ManagedVersionMap is empty", !clonedMap.isEmpty() );
         assertTrue( "ManagedVersionMap does not contain test key",



Mime
View raw message