mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Update to reset memory record store before and after each
This commit is contained in:
@ -31,8 +31,7 @@ public class BaseTest
|
|||||||
void baseBeforeEach()
|
void baseBeforeEach()
|
||||||
{
|
{
|
||||||
QContext.init(TestUtils.defineInstance(), new QSession());
|
QContext.init(TestUtils.defineInstance(), new QSession());
|
||||||
MemoryRecordStore.getInstance().reset();
|
resetMemoryRecordStore();
|
||||||
MemoryRecordStore.resetStatistics();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -44,8 +43,19 @@ public class BaseTest
|
|||||||
void baseAfterEach()
|
void baseAfterEach()
|
||||||
{
|
{
|
||||||
QContext.clear();
|
QContext.clear();
|
||||||
|
resetMemoryRecordStore();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
private static void resetMemoryRecordStore()
|
||||||
|
{
|
||||||
MemoryRecordStore.getInstance().reset();
|
MemoryRecordStore.getInstance().reset();
|
||||||
MemoryRecordStore.resetStatistics();
|
MemoryRecordStore.resetStatistics();
|
||||||
|
MemoryRecordStore.setCollectStatistics(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user