JUnit test for method isClassPathValid in StaticTest.java. In order to
successfully test this method you must set the validPath variables to valid
paths on your filesystem.
String validPath = null;
String invalidPath = "badPath";
String OS = System.getProperty("os.name");
if(OS.startsWith("Win")) {
validPath = "C:/Sun/appserver8/jdk";
} else {
validPath = "/export/appserver8/jdk";
}
Assert.assertTrue(StaticTest.classPathCheck);
Assert.assertTrue(StaticTest.isClassPathValid(validPath));
Assert.assertFalse(StaticTest.isClassPathValid(invalidPath));