throw new TestException(
"could not successfully start the service "
+serviceName);
}
try {
StorageLocationAdmin locAdmin
= StorageAdminUtil.getStorageLocationAdmin(discoverySrvc);
String oldLocation = locAdmin.getStorageLocation();
logger.log(Level.FINE, ""
+": oldLocation = "+oldLocation);
expectedLocation = oldLocation+"_New";
logger.log(Level.FINE, ""
+": expectedLocation = "+expectedLocation);
locAdmin.setStorageLocation(expectedLocation);
String newLocation = locAdmin.getStorageLocation();
logger.log(Level.FINE, ""+": newLocation = "+newLocation);
if(!expectedLocation.equals(newLocation)) {
throw new TestException(
"new location not equal to expected location");
}