add advanced scenario-tests for coop-assets #123

Merged
hsh-michaelhoennig merged 24 commits from feature/add-advanced-scenario-tests-for-coop-assets into master 2024-11-25 16:06:26 +01:00
Showing only changes of commit d3237c819e - Show all commits

View File

@ -172,14 +172,15 @@ public class CsvDataImport extends ContextBasedTest {
public <T extends BaseEntity> T persistViaEM(final Integer id, final T entity) {
//System.out.println("persisting #" + entity.hashCode() + ": " + entity);
em.persist(entity);
// uncomment for debugging purposes FIXME
try {
em.flush(); // makes it slow, but produces better error messages
System.out.println("persisted #" + entity.hashCode() + " as " + entity.getUuid());
return entity;
} catch (final Exception exc) {
throw exc; // for breakpoints
}
// uncomment for debugging purposes
// try {
// em.flush(); // makes it slow, but produces better error messages
// System.out.println("persisted #" + entity.hashCode() + " as " + entity.getUuid());
// return entity;
// } catch (final Exception exc) {
// throw exc; // for breakpoints
// }
return entity;
}
@SneakyThrows