Annotation Type PublicForTesting


  • @Documented
    @Target({METHOD,CONSTRUCTOR})
    @Retention(RUNTIME)
    public @interface PublicForTesting
    With this annotation you can mark methods which are public for testing but which should *never* be called from outside, but only from test methods or from the class itself.

    This annotation is similar to @OnlyForTesting but it cannot be statically checked. So you find it unter the check.runtime package.

    Since:
    18.03.2009
    Version:
    $Revision: 1.6 $
    Author:
    oliver