"Implements Methods" (Ctrl-I)
current default code is very useful to create MockObject in a snap.
default code : way 1.
---------------------
public Object get ( Object key ) {
return null;
}
Sometimes, though, I wish IDEA had an option to create another default code:
default code : way 2.
---------------------
public Object get ( Object key ) {
throw new RuntimeException ("Not yet implemented");
}
Example: you create a class that implements Map, and want to make sure
your test code tries all the implemented methods. You know know you use
all the methods once you have removed all the "Not yet implemented",
to make tests pass.
Alain Ravet
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features