patterntesting.annotation.check.runtime
Annotation Type PublicForTesting


@Documented
@Target(value={METHOD,CONSTRUCTOR})
@Retention(value=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.2 $
Author:
oliver



Copyright © 2002–2014 PatternTesting Team. All rights reserved.