Skip to content
Snippets Groups Projects
Verified Commit 079d04d9 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix integration tests

parent 13b1a86a
No related branches found
No related tags found
1 merge request!21Release v0.4.0
......@@ -33,19 +33,16 @@ import org.caosdb.server.utils.EntityStatus;
public class InsertTransactionHistory extends BackendTransaction {
private final TransactionContainer container;
private final String transaction;
private final UTCDateTime datetime;
private final String user;
private final String realm;
public InsertTransactionHistory(
final TransactionContainer container,
final String transaction,
final String realm,
final String user,
final UTCDateTime timestamp) {
this.container = container;
this.transaction = transaction;
this.user = user;
this.datetime = timestamp;
this.realm = realm;
......@@ -60,7 +57,7 @@ public class InsertTransactionHistory extends BackendTransaction {
|| e.getEntityStatus() == EntityStatus.VALID) {
t.execute(
this.transaction,
e.getClass().getSimpleName().replace("Entity", ""),
this.realm,
this.user,
this.datetime.getUTCSeconds(),
......
......@@ -231,8 +231,7 @@ public abstract class Transaction<C extends TransactionContainer> extends Abstra
String realm = ((Principal) getTransactor().getPrincipal()).getRealm();
String username = ((Principal) getTransactor().getPrincipal()).getUsername();
execute(
new InsertTransactionHistory(
getContainer(), this.getClass().getSimpleName(), realm, username, getTimestamp()),
new InsertTransactionHistory(getContainer(), realm, username, getTimestamp()),
getAccess());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment