org.xwiki.test.jmock.annotation
Annotation Type MockingRequirement


Deprecated. starting with 4.3.1 use MockitoComponentMockingRule instead

@Deprecated
@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
public @interface MockingRequirement

Defines a component that needs to have its injected components mocked.

Since:
2.4RC1
Version:
$Id: a9a0baf7b7362569b6879478b03cf4db8c908f0c $

Required Element Summary
 Class<?> value
          Deprecated.  
 
Optional Element Summary
 Class<?>[] exceptions
          Deprecated.  
 String hint
          Deprecated.  
 Class<?> role
          Deprecated.  
 

Element Detail

value

public abstract Class<?> value
Deprecated. 
Returns:
the Component implementation class
Since:
4.2M3

role

public abstract Class<?> role
Deprecated. 
Returns:
the role if the component implementation implements several roles
Default:
java.lang.Object.class

hint

public abstract String hint
Deprecated. 
Returns:
the hint if the component implementation has several roles
Default:
""

exceptions

public abstract Class<?>[] exceptions
Deprecated. 
Returns:
a list of component roles for classes that shouldn't be mocked
Default:
{}


Copyright © 2004–2014 XWiki. All rights reserved.