All Downloads are FREE. Search and download functionalities are using the official Maven repository.

patterntesting.runtime.annotation.NotYetImplemented Maven / Gradle / Ivy

Go to download

PatternTesting Runtime (patterntesting-rt) is the runtime component for the PatternTesting framework. It provides the annotations and base classes for the PatternTesting testing framework (e.g. patterntesting-check, patterntesting-concurrent or patterntesting-exception) but can be also used standalone for classpath monitoring or profiling. It uses AOP and AspectJ to perform this feat.

The newest version!
/**
 * $Id: NotYetImplemented.java,v 1.4 2009/12/19 22:34:09 oboehm Exp $
 *
 * Copyright (c) 2008 by Oliver Boehm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * (c)reated 19.10.2008 by oliver ([email protected])
 */
package patterntesting.runtime.annotation;

import java.lang.annotation.*;

/**
 * Eclipse and other tools will generate default implementation for you if you
 * want to implement an interface. The problem with this implementation is
 * that you must always overwrite this default implementation.
 * 
* To be able to mark these methods as "not yet finished" you can put this * annotation in front of it. If you add a text this text is used for * thrown UnsupportedOperationException. You can add "{0}" if you want to see * the method name in the exception e.g. * @NotYetImplemented("don''t call {0} today"). *
* NOTE: a single quote must be written as "''" (see example above) because * java.text.MessageFormat is used here for the error message. *
* See patterntesting.sample.Fraction in PatternTesting Samples as an example * how to use it. * * @see UnsupportedOperation * @see java.text.MessageFormat * @author oliver * @since 19.10.2008 * @version $Revision: 1.4 $ */ @Documented @Target({ElementType.METHOD, ElementType.CONSTRUCTOR}) @Retention(RetentionPolicy.RUNTIME) public @interface NotYetImplemented { /** * You can define the text here which is used for the thrown * UnsupportedOperationException. You can add "{0}" if you want to see * the method name in the exception e.g. * @NotYetImplemented("don''t call {0} today"). * * @return "{0} is not yet implemented" as default */ String value() default "{0} is not yet implemented"; } /** * $Log: NotYetImplemented.java,v $ * Revision 1.4 2009/12/19 22:34:09 oboehm * trailing spaces removed * * Revision 1.3 2009/09/25 14:49:43 oboehm * javadocs completed with the help of JAutodoc * * Revision 1.2 2009/09/18 13:54:51 oboehm * javadoc warnings fixed * * Revision 1.1 2009/04/30 21:32:09 oboehm * @NotYetImplemented added * * $Source: /cvsroot/patterntesting/PatternTesting08/patterntesting-rt/src/main/java/patterntesting/runtime/annotation/NotYetImplemented.java,v $ */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy