}
@Test
public void testJdkVersion()
{
JdkVersion jdkVersion = new JdkVersion("1.7");
assertEquals(new Integer(1), jdkVersion.getMajor());
assertEquals(new Integer(7), jdkVersion.getMinor());
assertNull(jdkVersion.getMicro());
assertNull(jdkVersion.getUpdate());
assertNull(jdkVersion.getMilestone());
jdkVersion = new JdkVersion("1.7.0-ea");
assertEquals(new Integer(1), jdkVersion.getMajor());
assertEquals(new Integer(7), jdkVersion.getMinor());
assertEquals(new Integer(0), jdkVersion.getMicro());
assertNull(jdkVersion.getUpdate());
assertEquals("ea", jdkVersion.getMilestone());
jdkVersion = new JdkVersion("1.6.0_29-b05");
assertEquals(new Integer(1), jdkVersion.getMajor());
assertEquals(new Integer(6), jdkVersion.getMinor());
assertEquals(new Integer(0), jdkVersion.getMicro());
assertEquals(new Integer(29), jdkVersion.getUpdate());
assertEquals("b05", jdkVersion.getMilestone());
}