org.xwiki.test.annotation
Annotation Type MockingRequirement


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

Defines a field that needs to be injected with a mocked component.

Since:
2.4RC1
Version:
$Id$

Optional Element Summary
 Class<?>[] exceptions
           
 String hint
           
 Class<?> value
           
 

value

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

hint

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

exceptions

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


Copyright © 2004-2012 XWiki. All Rights Reserved.