use of com.emc.storageos.db.client.model.uimodels.ExecutionTaskLog in project coprhd-controller by CoprHD.
the class ExecutionTaskLogTest method testPersistObject.
@Test
public void testPersistObject() throws Exception {
_logger.info("Starting persist ExecutionTaskLog test");
ExecutionTaskLog model = new ExecutionTaskLog();
model.setLabel("foo");
model.setDetail("my detail");
Long elapsed = new Long(42);
model.setElapsed(elapsed);
model.setStackTrace("my stack trace");
save(model);
model = findById(model.getId());
Assert.assertNotNull(model);
Assert.assertEquals("foo", model.getLabel());
Assert.assertEquals("my detail", model.getDetail());
Assert.assertEquals(elapsed, model.getElapsed());
Assert.assertEquals("my stack trace", model.getStackTrace());
}
Aggregations