@Override public V3ErrorHandling adapt(ErrorHandling from) { V3ErrorHandling to = new V3ErrorHandling(); if (from.isSetOnError()) { to.setOnError(from.getOnError().value()); } return to; } }
entity.setMigrateOnError(map(model.getErrorHandling().getOnError(), null));
assertNotNull(transform.getSchedulingPolicy()); assertEquals(model.getSchedulingPolicy().getId(), transform.getSchedulingPolicy().getId()); assertEquals(model.getErrorHandling().getOnError(), transform.getErrorHandling().getOnError()); assertNotNull(transform.getMemoryPolicy()); assertNotNull(transform.getMemoryPolicy().getTransparentHugepages());