[Major] moved OrderDao and ResourceDao factory methods to transaction
It makes using transaction feel easier.
This commit is contained in:
parent
111d8a97c5
commit
2c10b1b727
|
@ -18,6 +18,7 @@ package li.strolch.testbase.runtime;
|
|||
import java.io.File;
|
||||
import java.text.MessageFormat;
|
||||
|
||||
import li.strolch.persistence.api.PersistenceHandler;
|
||||
import li.strolch.runtime.agent.ComponentContainer;
|
||||
import li.strolch.runtime.agent.StrolchAgent;
|
||||
import li.strolch.runtime.configuration.RuntimeConfiguration;
|
||||
|
@ -47,6 +48,10 @@ public class RuntimeMock {
|
|||
return container.getComponent(StrolchPrivilegeHandler.class);
|
||||
}
|
||||
|
||||
public static PersistenceHandler getPersistenceHandler() {
|
||||
return container.getComponent(PersistenceHandler.class);
|
||||
}
|
||||
|
||||
public static void mockRuntime(File rootPathF, File configSrc) {
|
||||
|
||||
if (!rootPathF.getParentFile().getName().equals(TARGET)) {
|
||||
|
|
Loading…
Reference in New Issue