patterntesting.runtime.annotation
Annotation Type NotYetImplemented


@Documented
@Target(value={METHOD,CONSTRUCTOR})
@Retention(value=RUNTIME)
public @interface NotYetImplemented

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.

Since:
19.10.2008
Version:
$Revision: 1.2 $
Author:
oliver
See Also:
UnsupportedOperation, MessageFormat

Optional Element Summary
 String value
          You can define the text here which is used for the thrown UnsupportedOperationException.
 

value

public abstract String value
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").

Default:
"{0} is not yet implemented"


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