2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

public final class

MockHandler

extends Object
implements FieldHandler<A extends Annotation>
java.lang.Object
   ↳ org.apache.onami.test.handler.MockHandler

Class Overview

Handler class to handle all Mock annotations.

See Also

Summary

Public Constructors
MockHandler()
Public Methods
HashMap<FieldObject> getMockedObject(MockEngine engine)
Return the mocked objects.
void handle(Mock annotation, Field element)
Invoked when the visitor founds an element with a Mock annotation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.onami.test.reflection.AnnotationHandler

Public Constructors

public MockHandler ()

Public Methods

public HashMap<FieldObject> getMockedObject (MockEngine engine)

Return the mocked objects.

Parameters
engine the MockEngine
Returns
  • the map of mocked objects

public void handle (Mock annotation, Field element)

Invoked when the visitor founds an element with a Mock annotation.

Parameters
annotation The Mock annotation type
element the Mock annotated fiels
Throws
HandleException when an error occurs.