Title: [1340] trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaClassTest.java: Use Method.getReturnType() instead of deprecated getReturns()
Revision
1340
Author
rfscholte
Date
2011-09-30 16:24:22 -0500 (Fri, 30 Sep 2011)

Log Message

Use Method.getReturnType() instead of deprecated getReturns()

Modified Paths


Diff

Modified: trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaClassTest.java (1339 => 1340)

--- trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaClassTest.java	2011-09-30 21:23:51 UTC (rev 1339)
+++ trunk/qdox/src/test/java/com/thoughtworks/qdox/model/JavaClassTest.java	2011-09-30 21:24:22 UTC (rev 1340)
@@ -202,7 +202,7 @@
         JavaMethod mth = mock(JavaMethod.class);
         when(mth.getName()).thenReturn( "doStuff" );
         Type voidType = newType("void");
-        when(mth.getReturns()).thenReturn( voidType );
+        when(mth.getReturnType()).thenReturn( voidType );
         
         setMethods(cls, Collections.singletonList( mth ));
         String expected = ""
@@ -221,7 +221,7 @@
             JavaMethod mth = mock(JavaMethod.class);
             when(mth.getName()).thenReturn( "doStuff" );
             Type voidType = newType( "void" );
-            when(mth.getReturns()).thenReturn( voidType );
+            when(mth.getReturnType()).thenReturn( voidType );
             methods.add(mth);
         }
 
@@ -229,7 +229,7 @@
             JavaMethod mth = mock(JavaMethod.class);
             when(mth.getName()).thenReturn( "somethingElse" );
             Type gooseType = newType("Goose");
-            when(mth.getReturns()).thenReturn( gooseType );
+            when(mth.getReturnType()).thenReturn( gooseType );
             methods.add(mth);
         }
 
@@ -237,7 +237,7 @@
             JavaMethod mth = mock(JavaMethod.class);
             when(mth.getName()).thenReturn( "eat" );
             Type voidType = newType("void");
-            when(mth.getReturns()).thenReturn( voidType );
+            when(mth.getReturnType()).thenReturn( voidType );
             methods.add(mth);
         }
         setMethods( cls, methods );
@@ -364,7 +364,7 @@
         JavaMethod mth = mock(JavaMethod.class);
         when(mth.getName()).thenReturn( "thingy" );
         Type stringType = newType( "String" );
-        when(mth.getReturns()).thenReturn( stringType );
+        when(mth.getReturnType()).thenReturn( stringType );
         when(mth.getComment()).thenReturn( "Hello Method" );
         setMethods( cls, Collections.singletonList( mth ) );
         
@@ -596,7 +596,7 @@
 
         JavaMethod getFooMethod = mock(JavaMethod.class);
         when(getFooMethod.getName()).thenReturn( "getFoo" );
-        when(getFooMethod.getReturns()).thenReturn( intType );
+        when(getFooMethod.getReturnType()).thenReturn( intType );
         when(getFooMethod.isPropertyAccessor()).thenReturn( true );
         when(getFooMethod.getPropertyName()).thenReturn( "foo" );
         when(getFooMethod.getPropertyType()).thenReturn( intType );
@@ -661,14 +661,14 @@
         JavaMethod getFooMethod = mock(JavaMethod.class);
         when(getFooMethod.getName()).thenReturn( "getFoo" );
         Type intType = newType("int");
-        when(getFooMethod.getReturns()).thenReturn( intType );
+        when(getFooMethod.getReturnType()).thenReturn( intType );
         when(getFooMethod.getPropertyName()).thenReturn( "foo" );
         when(getFooMethod.isPropertyAccessor()).thenReturn( true );
         methods.add( getFooMethod );
 
         JavaMethod getBarMethod = mock(JavaMethod.class);
         when(getBarMethod.getName()).thenReturn( "getBar" );
-        when(getBarMethod.getReturns()).thenReturn( intType );
+        when(getBarMethod.getReturnType()).thenReturn( intType );
         when(getBarMethod.getPropertyName()).thenReturn( "bar" );
         when(getBarMethod.isPropertyAccessor()).thenReturn( true );
         methods.add( getBarMethod );


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to