Title: [1454] trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaConstructorTest.java: Improve JavaConstructorTest
Revision
1454
Author
rfscholte
Date
2011-12-27 11:29:56 -0600 (Tue, 27 Dec 2011)

Log Message

Improve JavaConstructorTest

Modified Paths


Diff

Modified: trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaConstructorTest.java (1453 => 1454)


--- trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaConstructorTest.java	2011-12-27 17:02:05 UTC (rev 1453)
+++ trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaConstructorTest.java	2011-12-27 17:29:56 UTC (rev 1454)
@@ -11,8 +11,6 @@
 
 import org.junit.Test;
 
-import com.thoughtworks.qdox.model.impl.DefaultJavaType;
-
 public abstract class JavaConstructorTest<D extends JavaConstructor>
 {
     
@@ -22,21 +20,20 @@
     protected abstract void setParentClass( D constructor, JavaClass cls );
     protected abstract void setParameters( D constructor, List<JavaParameter> singletonList );
 
-    private DefaultJavaType newType( String name )
+    private JavaType newType( String name )
     {
         return newType( name, 0 );
     }
     
-    private DefaultJavaType newType( String name, int dimensions )
+    private JavaType newType( String name, int dimensions )
     {
-        DefaultJavaType result = mock(DefaultJavaType.class);
+        JavaType result = mock(JavaType.class);
         when(result.getFullyQualifiedName()).thenReturn( name );
-        when(result.getDimensions()).thenReturn( dimensions );
         return result;
         
     }
     
-    private JavaParameter newJavaParameter( DefaultJavaType type, String name )
+    private JavaParameter newJavaParameter( JavaType type, String name )
     {
         JavaParameter result = mock( JavaParameter.class );
         when( result.getType() ).thenReturn( type );

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to