001    /**
002     * $Id: PublicForTesting.java,v 1.2 2010/01/05 21:47:23 oboehm Exp $
003     *
004     * Copyright (c) 2009 by Oliver Boehm
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     *
018     * (c)reated 18.03.2009 by oliver (ob@aosd.de)
019     */
020    package patterntesting.annotation.check.runtime;
021    
022    import java.lang.annotation.*;
023    
024    /**
025     * With this annotation you can mark methods which are public for testing but
026     * which should *never* be called from outside, but only from test methods
027     * or from the class itself.
028     * <br/>
029     * This annotation is similar to @OnlyForTesting but it cannot be
030     * statically checked. So you find it unter the check.runtime package.
031     *
032     * @author <a href="boehm@javatux.de">oliver</a>
033     * @since 18.03.2009
034     * @version $Revision: 1.2 $
035     */
036    @Documented
037    @Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
038    @Retention(RetentionPolicy.RUNTIME)
039    public @interface PublicForTesting {
040    
041    }