예제 #1
0
 public void testGetBuildInfo() {
   assertFalse(Version.getBuildInfo().isEmpty());
 }
예제 #2
0
 public void testGetNumericVersion() {
   assertTrue(Version.getNumeric() >= 0);
 }
예제 #3
0
 // Since the version can change there are only a few things we can check
 // without creating complex parsing code.
 // 1. check that the code does not crash when the method is called
 // 2. make sure the value returned is a reasonable. If its a string make
 //    sure its not empty if its a number make sure its not negative.
 public void testGetVersion() {
   assertFalse(Version.get().isEmpty());
 }