public class PersistenceTestUtils
extends java.lang.Object
| Constructor and Description |
|---|
PersistenceTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Date |
adjustToDB(java.util.Date date)
Simulates the effect of database storing a particular date.
|
static <T extends AbstractItemModel> |
saveAndVerifyThatPersistedThroughSld(ModelService modelService,
T item)
Saves and asserts that a given item is saved through SLD instead of Jalo.
|
static void |
verifyThatUnderlyingPersistenceObjectIsSld(ItemModel item)
Asserts if a given item is backed by persistence object of SLD type.
|
public static <T extends AbstractItemModel> void saveAndVerifyThatPersistedThroughSld(ModelService modelService, T item)
modelService - model service for item savingitem - item to savepublic static void verifyThatUnderlyingPersistenceObjectIsSld(ItemModel item)
item - item to verifypublic static java.util.Date adjustToDB(java.util.Date date)
On MySQL this means dropping all milliseconds!
Copyright © 2018 SAP SE. All Rights Reserved.