Skip to content

Commit

Permalink
refactor: removed usage of legacy database APIs from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Jan 13, 2025
1 parent 23d2e15 commit 0ae7918
Show file tree
Hide file tree
Showing 31 changed files with 121 additions and 1,210 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,35 +125,6 @@ public static boolean existsDatabase(final String url) throws IOException {
return new ODatabaseDocumentTx(url).exists();
}

@Deprecated
public static void freezeDatabase(final ODatabase database) throws IOException {
database.activateOnCurrentThread();
if (database.getURL().startsWith("remote")) {
final OServerAdmin serverAdmin = new OServerAdmin(database.getURL());
serverAdmin.connect("root", getServerRootPassword()).freezeDatabase("plocal");
serverAdmin.close();
} else {
database.freeze();
}
}

@Deprecated
public static void releaseDatabase(final ODatabase database) throws IOException {
database.activateOnCurrentThread();
if (database.getURL().startsWith("remote")) {
final OServerAdmin serverAdmin = new OServerAdmin(database.getURL());
serverAdmin.connect("root", getServerRootPassword()).releaseDatabase("plocal");
serverAdmin.close();
} else {
database.release();
}
}

@Deprecated
public static File getConfigurationFile() {
return getConfigurationFile(null);
}

@Deprecated
public static String getServerRootPassword() throws IOException {
return getServerRootPassword("server");
Expand Down

This file was deleted.

Loading

0 comments on commit 0ae7918

Please sign in to comment.