use of org.activityinfo.server.database.hibernate.entity.LockedPeriod in project activityinfo by bedatadriven.
the class UpdateSiteTest method testUpdateLockedPeriod.
@Test
public void testUpdateLockedPeriod() throws CommandException {
Map<String, Object> changes = new HashMap<String, Object>();
changes.put("enabled", false);
execute(new UpdateEntity("LockedPeriod", 1, changes));
// assure that the change has been effected
LockedPeriod lockedPeriod = em.find(LockedPeriod.class, 1);
Assert.assertEquals("enabled", false, lockedPeriod.isEnabled());
}
Aggregations