@Test public void testCaseDefinitionMapper_mapNull() { final CaseDefinition cd = null; final CaseDefinitionSummary cds = new CaseDefinitionMapper().apply(cd); assertNull(cds); }
@Override public ProcessDefinitionSummary apply(final ProcessDefinition cd) { if (cd == null) { return null; } return ProcessDefinitionSummary.builder(). id(cd.getId()). name(cd.getName()). containerId(cd.getContainerId()). version(cd.getVersion()). packageName(cd.getPackageName()). build(); }
ProcessDefinitionMapper implements Function<ProcessDefinition, ProcessDefinitionSummary> { @Override public ProcessDefinitionSummary apply(final ProcessDefinition cd) { if (cd == null) { return null; } return ProcessDefinitionSummary.builder(). id(cd.getId()). name(cd.getName()). containerId(cd.getContainerId()). version(cd.getVersion()). packageName(cd.getPackageName()). build(); } }
ProcessDefinitionMapper implements Function<ProcessDefinition, ProcessDefinitionSummary> { @Override public ProcessDefinitionSummary apply(final ProcessDefinition cd) { if (cd == null) { return null; } return ProcessDefinitionSummary.builder(). id(cd.getId()). name(cd.getName()). containerId(cd.getContainerId()). version(cd.getVersion()). packageName(cd.getPackageName()). build(); }  }
ProcessDefinitionMapper implements Function<ProcessDefinition, ProcessDefinitionSummary> { @Override public ProcessDefinitionSummary apply(final ProcessDefinition cd) { if (cd == null) { return null; } return ProcessDefinitionSummary.builder(). id(cd.getId()). name(cd.getName()). containerId(cd.getContainerId()). version(cd.getVersion()). packageName(cd.getPackageName()). build(); }  @Override ProcessDefinitionSummary apply(final ProcessDefinition cd); }
ProcessDefinitionMapper implements Function<ProcessDefinition, ProcessDefinitionSummary> { @Override public ProcessDefinitionSummary apply(final ProcessDefinition cd) { if (cd == null) { return null; } return ProcessDefinitionSummary.builder(). id(cd.getId()). name(cd.getName()). containerId(cd.getContainerId()). version(cd.getVersion()). packageName(cd.getPackageName()). build(); }  @Override ProcessDefinitionSummary apply(final ProcessDefinition cd);  }