156157158159160161162163164165
case GLOBAL_SYNC: case SYNC: default: spec = ((SyncPolicyTO) policyTO).getSpecification() != null ? ((SyncPolicyTO) policyTO).getSpecification() : new SyncPolicySpec(); } return spec; }
979899100101102103104105106107
} @Test public void create() { SyncPolicy policy = new SyncPolicy(); policy.setSpecification(new SyncPolicySpec()); policy.setDescription("Sync policy"); policy = policyDAO.save(policy); assertNotNull(policy);