[New] Implemented separate DataStoreMode for each StrolchRealm

This commit is contained in:
Robert von Burg 2014-02-17 22:08:27 +01:00
parent c37792fead
commit 0189eab99a
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ public class OrderModelTestRunner {
updatedOrder = tx.getOrderMap().getBy(tx, TYPE, ID);
}
assertNotNull("Should read Order with id " + ID, updatedOrder);
if (this.runtimeMock.getContainer().getDataStoreMode() != DataStoreMode.CACHED)
if (this.runtimeMock.getRealm(StrolchConstants.DEFAULT_REALM).getMode() != DataStoreMode.CACHED)
assertFalse("Objects can't be the same reference after re-reading!", readOrder == updatedOrder);
Parameter<String> updatedParam = readOrder.getParameter(BAG_ID, PARAM_STRING_ID);
assertEquals(newStringValue, updatedParam.getValue());

View File

@ -110,7 +110,7 @@ public class ResourceModelTestRunner {
updatedResource = tx.getResourceMap().getBy(tx, TYPE, ID);
}
assertNotNull("Should read Resource with id " + ID, updatedResource); //$NON-NLS-1$
if (this.runtimeMock.getContainer().getDataStoreMode() != DataStoreMode.CACHED)
if (this.runtimeMock.getRealm(StrolchConstants.DEFAULT_REALM).getMode() != DataStoreMode.CACHED)
assertFalse("Objects can't be the same reference after re-reading!", readResource == updatedResource); //$NON-NLS-1$
Parameter<String> updatedParam = readResource.getParameter(BAG_ID, PARAM_STRING_ID);
assertEquals(newStringValue, updatedParam.getValue());