@Test public void testCaseDefinitionMapper_mapNull() { final CaseDefinition cd = null; final CaseDefinitionSummary cds = new CaseDefinitionMapper().apply(cd); assertNull(cds); }
@Override public CaseDefinitionSummary apply(final CaseDefinition cd) { if (cd == null) { return null; } return CaseDefinitionSummary.builder(). id(cd.getIdentifier()). name(cd.getName()). containerId(cd.getContainerId()). roles(cd.getRoles()). build(); }
CaseDefinitionMapper implements Function<CaseDefinition, CaseDefinitionSummary> { @Override public CaseDefinitionSummary apply(final CaseDefinition cd) { if (cd == null) { return null; } return CaseDefinitionSummary.builder(). id(cd.getIdentifier()). name(cd.getName()). containerId(cd.getContainerId()). roles(cd.getRoles()). build(); } }
CaseDefinitionMapper implements Function<CaseDefinition, CaseDefinitionSummary> { @Override public CaseDefinitionSummary apply(final CaseDefinition cd) { if (cd == null) { return null; } return CaseDefinitionSummary.builder(). id(cd.getIdentifier()). name(cd.getName()). containerId(cd.getContainerId()). roles(cd.getRoles()). build(); }  }
CaseDefinitionMapper implements Function<CaseDefinition, CaseDefinitionSummary> { @Override public CaseDefinitionSummary apply(final CaseDefinition cd) { if (cd == null) { return null; } return CaseDefinitionSummary.builder(). id(cd.getIdentifier()). name(cd.getName()). containerId(cd.getContainerId()). roles(cd.getRoles()). build(); }  @Override CaseDefinitionSummary apply(final CaseDefinition cd); }
CaseDefinitionMapper implements Function<CaseDefinition, CaseDefinitionSummary> { @Override public CaseDefinitionSummary apply(final CaseDefinition cd) { if (cd == null) { return null; } return CaseDefinitionSummary.builder(). id(cd.getIdentifier()). name(cd.getName()). containerId(cd.getContainerId()). roles(cd.getRoles()). build(); }  @Override CaseDefinitionSummary apply(final CaseDefinition cd);  }