Dennis' Weblog
What you like about JDK 1.5?
Two things that I really like about JDK 1.5.
Annotation
This feature opens up alot of opportunities to rethink how code can be implemented.
In OpenSSO project, the Commandline Interface tool uses this feature. Check it out
Generic
This feature makes code cleaner and make collection classes typesafe. For example, we can have
List<String> strList = new ArrayList<String>();
strList.add("hello");
strList.add("generic");
for (String str : strList) {
System.out.println(str);
}
Now, what is cool in JDK 1.6?
Posted at 12:28AM Aug 28, 2006 by justme in Java |
Unit Test
I have been writing TestNG testcases for a couple of days. It is really fun. IMO, there are plenty of rooms for improvement is the HTML reports. Well, this is minor stuffs. On the whole, the experience is great. Cedric is clever in leveraging the Java annotation to control the flow of test framework.
The other big thing about testNG is that we can choose to run the testcases in parallel or in sequential mode. The multi threading mode is a big win here. We get back test results faster and also allow us to test if our implementation is threadsafe.
And, we can always get quick and good answers from testNG newsgroup. Well, I guess JUnit has some catch-ups to do. In any case, both of these test framework are really great tools to make writing testcases more enjoyable.
I was talking to a NetBeans developer. He said that NetBeans IDE does not testNG support. I was pretty surprised. testNG has been around for a while and it is gaining adoption rapid. I guess it is time for a testNG plugin to NetBeans.
Posted at 01:38AM Aug 26, 2006 by justme in Java | Comments[2]