[Major] moved OrderDao and ResourceDao factory methods to transaction

It makes using transaction feel easier.
This commit is contained in:
Robert von Burg 2013-12-24 00:36:36 +01:00
parent 111d8a97c5
commit 2c10b1b727
1 changed files with 5 additions and 0 deletions

View File

@ -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)) {