Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.api
Annotation Type TestMock


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface TestMock

Specifies the annotated bean is a replacement type for all matching common subtypes in the context of a unit test.

When running unit tests with Errai IOC managed applications, beans which have been annotated with @TestMock will be given injection consideration preference over any other matching beans.

For the purposes of beans annotated with @TestMock, the bean is treated as an otherwise normal bean, with normal resolution rules, including the use of qualifiers.

Author:
Mike Brock, Christian Sadilek


Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.