I thought I would be fancy in my previous post and tried to use a WordPress plug-in to make my code look pretty. I downloaded WP-Syntax and gave it a try. Seemed simple enough <pre lang=”java”>…</pre>. Don’t know what the problem was, but it just toasted my code! I think it might have to do with remote publishing, using the XML API. I must have messed with it for about 30 minutes, before I finally gave up and resorted back to simple HTML. I thought I would try one more plug-in tonight; it was called Syntax Hilighter Evolved. The usage is similar to the WP-Syntax, but I finally got this one to work using the built-in WordPress editor.
My next post will be about creating your own Java 1.5 Annotations and adding new behavior to your unit test suite. I thought it was actually a pretty cool exercise… but that is just me!
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) public @interface TestUserAuthorization { String principal(); String testUserManager(); }