|
|
|
@ -5,6 +5,9 @@ import com.fr.config.dao.impl.LocalClassHelperDao;
|
|
|
|
|
import com.fr.config.dao.impl.LocalEntityDao; |
|
|
|
|
import com.fr.config.dao.impl.LocalXmlEntityDao; |
|
|
|
|
import com.fr.runtime.FineRuntime; |
|
|
|
|
import com.fr.store.StateHubManager; |
|
|
|
|
import com.fr.store.impl.MemoryLock; |
|
|
|
|
import com.fr.store.impl.MemoryStore; |
|
|
|
|
import org.junit.After; |
|
|
|
|
import org.junit.Before; |
|
|
|
|
|
|
|
|
@ -21,6 +24,8 @@ public class Prepare {
|
|
|
|
|
DaoContext.setEntityDao(new LocalEntityDao()); |
|
|
|
|
DaoContext.setClassHelperDao(new LocalClassHelperDao()); |
|
|
|
|
DaoContext.setXmlEntityDao(new LocalXmlEntityDao()); |
|
|
|
|
StateHubManager.setStorage(new MemoryStore()); |
|
|
|
|
StateHubManager.setLock(new MemoryLock()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@After |
|
|
|
@ -28,6 +33,8 @@ public class Prepare {
|
|
|
|
|
DaoContext.setEntityDao(null); |
|
|
|
|
DaoContext.setClassHelperDao(null); |
|
|
|
|
DaoContext.setXmlEntityDao(null); |
|
|
|
|
StateHubManager.setStorage(null); |
|
|
|
|
StateHubManager.setLock(null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|