-
|
Hi, I am currently investigating an issue I observed with the How can I achieve what I described above? Edit: I found out why the tests in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Sorry for previously missing this. Now that you closed it, it popped up in my feed again, so here's the response: I think you could take some inspiration from how we did it in an older Hyades version: https://github.com/DependencyTrack/hyades-apiserver/blob/5.6.0/apiserver/src/test/java/org/dependencytrack/PersistenceCapableTest.java Here is the most relevant part: https://github.com/DependencyTrack/hyades-apiserver/blob/5bba0d2acd517171e7eced942ae6f8ddcf948cc7/apiserver/src/test/java/org/dependencytrack/PersistenceCapableTest.java#L94-L113 Note that Hyades uses Liquibase to create the database schema so you'll need to change these lines to: https://github.com/stevespringett/Alpine/blob/01134ba3ebde90b86133ef9c8340616d7d4dff97/alpine-server/src/main/java/alpine/server/persistence/PersistenceManagerFactory.java#L67-L71 |
Beta Was this translation helpful? Give feedback.
Sorry for previously missing this. Now that you closed it, it popped up in my feed again, so here's the response:
I think you could take some inspiration from how we did it in an older Hyades version: https://github.com/DependencyTrack/hyades-apiserver/blob/5.6.0/apiserver/src/test/java/org/dependencytrack/PersistenceCapableTest.java
Here is the most relevant part: https://github.com/DependencyTrack/hyades-apiserver/blob/5bba0d2acd517171e7eced942ae6f8ddcf948cc7/apiserver/src/test/java/org/dependencytrack/PersistenceCapableTest.java#L94-L113
Note that Hyades uses Liquibase to create the database schema so you'll need to change these lines to: https://github.com/stevespringett/Alpine/blob/0…