getConnection();
saveEncryptionAlgorithm();
}
// Make sure the database is (still) encrypted.
TestConfiguration tc = getTestConfiguration();
tc.shutdownDatabase();
try {
connect(false, null, null);
tc.shutdownDatabase();
// Database has been decrypted. Encrypt it again.
println("encrypting database (" + encryptionAlgorithm + ")");
connect(false, BOOTPW, "dataEncryption=true;encryptionAlgorithm=" +
encryptionAlgorithm);
tc.shutdownDatabase();
connect(false, null, null);
fail("database encryption failed");
} catch (SQLException sqle) {
assertSQLState("XBM06", sqle);
}