* changes:
fix: Typo pointed out while reviewing change 492
chg: Make synchronization on the Database layer explicit
* The hash to verify the password against.
* @return
* <ul>
- * <li><code>null</code>, if the password was valid</li>
+ * <li><code>null</code>, if the password was invalid</li>
* <li><code>hash</code>, if the password is valid and the hash
* doesn't need to be updated</li>
* <li>a new hash, if the password is valid but the hash in the
if ( !DatabaseConnection.isInited()) {
DatabaseConnection.init(testProps);
try {
- l = DatabaseConnection.newLink(false);
+ synchronized (ConfiguredTest.class) {
+ l = DatabaseConnection.newLink(false);
+ }
} catch (InterruptedException e) {
throw new Error(e);
}
@AfterClass
public static void closeDBLink() {
- if (l != null) {
- l.close();
- l = null;
+ synchronized (ConfiguredTest.class) {
+ if (l != null) {
+ l.close();
+ l = null;
+ }
}
}