Sunday Aug 27, 2006

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? :-)

Friday Aug 25, 2006

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.

About

justme

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News
Blogroll
Blog friends

No bookmarks in folder