onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcospera...@apache.org
Subject svn commit: r1435896 - in /incubator/onami/trunk/test/src/main/java/org/apache/onami/test: handler/MockHandler.java mock/MockEngine.java reflection/ClassVisitor.java
Date Sun, 20 Jan 2013 17:30:54 GMT
Author: marcosperanza
Date: Sun Jan 20 17:30:54 2013
New Revision: 1435896

URL: http://svn.apache.org/viewvc?rev=1435896&view=rev
Log:
Fixed JavaDoc

Modified:
    incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
    incubator/onami/trunk/test/src/main/java/org/apache/onami/test/mock/MockEngine.java
    incubator/onami/trunk/test/src/main/java/org/apache/onami/test/reflection/ClassVisitor.java

Modified: incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java?rev=1435896&r1=1435895&r2=1435896&view=diff
==============================================================================
--- incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
(original)
+++ incubator/onami/trunk/test/src/main/java/org/apache/onami/test/handler/MockHandler.java
Sun Jan 20 17:30:54 2013
@@ -47,8 +47,10 @@ public final class MockHandler
     private final HashMap<Field, Object> mockedObjects = new HashMap<Field, Object>(
1 );
 
     /**
-     * @param engine
-     * @return
+     * Return the mocked objects.
+     * 
+     * @param engine the {@link MockEngine}
+     * @return the map of mocked objects
      */
     public HashMap<Field, Object> getMockedObject( MockEngine engine )
     {
@@ -69,6 +71,13 @@ public final class MockHandler
         }
     }
 
+    
+    /**
+     * Invoked when the visitor founds an element with a {@link Mock} annotation.
+     * @param annotation The {@link Mock} annotation type
+     * @param element the {@link Mock} annotated fiels 
+     * @throws HandleException when an error occurs.    
+     */
     @SuppressWarnings( "unchecked" )
     public void handle( final Mock annotation, final Field element )
         throws HandleException

Modified: incubator/onami/trunk/test/src/main/java/org/apache/onami/test/mock/MockEngine.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/mock/MockEngine.java?rev=1435896&r1=1435895&r2=1435896&view=diff
==============================================================================
--- incubator/onami/trunk/test/src/main/java/org/apache/onami/test/mock/MockEngine.java (original)
+++ incubator/onami/trunk/test/src/main/java/org/apache/onami/test/mock/MockEngine.java Sun
Jan 20 17:30:54 2013
@@ -42,6 +42,7 @@ public interface MockEngine
      *
      * @param <T> Class to mock
      * @param cls Class to mock
+     * @param type the {@link MockObjType}
      * @return the mock object
      */
     <T> T createMock( Class<T> cls, MockObjType type );

Modified: incubator/onami/trunk/test/src/main/java/org/apache/onami/test/reflection/ClassVisitor.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/test/src/main/java/org/apache/onami/test/reflection/ClassVisitor.java?rev=1435896&r1=1435895&r2=1435896&view=diff
==============================================================================
--- incubator/onami/trunk/test/src/main/java/org/apache/onami/test/reflection/ClassVisitor.java
(original)
+++ incubator/onami/trunk/test/src/main/java/org/apache/onami/test/reflection/ClassVisitor.java
Sun Jan 20 17:30:54 2013
@@ -66,8 +66,8 @@ public final class ClassVisitor
      * Visits all fields, methods and super classes of the input class.
      *
      * @param <T> any type
-     * @param type
-     * @throws HandleException
+     * @param type The type 
+     * @throws HandleException when an error occurs.
      */
     public <T> void visit( final Class<? super T> type )
         throws HandleException



Mime
View raw message