@Test public void shouldBeAbleToConvertAGrantTypeIntoAGrantTypeRepresentation() { GrantType grantType = grantType().build(); GrantTypeRepresentation representation = grantTypeConversionService.convert(grantType); assertThat(representation.getId()).isEqualTo(grantType.getId()); assertThat(representation.getCreated()).isEqualTo(grantType.getCreated()); assertThat(representation.getUpdated()).isEqualTo(grantType.getUpdated()); assertThat(representation.getName()).isEqualTo(grantType.getName()); assertThat(representation.getDescription()).isEqualTo(grantType.getDescription()); }
public GrantTypeRepresentation convert(GrantType grantType) { GrantTypeRepresentation representation = new GrantTypeRepresentation(grantType.getId()); representation.setCreated(grantType.getCreated()); representation.setUpdated(grantType.getUpdated()); representation.setName(grantType.getName()); representation.setDescription(grantType.getDescription()); return representation; }
GrantTypeConversionService { public GrantTypeRepresentation convert(GrantType grantType) { GrantTypeRepresentation representation = new GrantTypeRepresentation(grantType.getId()); representation.setCreated(grantType.getCreated()); representation.setUpdated(grantType.getUpdated()); representation.setName(grantType.getName()); representation.setDescription(grantType.getDescription()); return representation; } }
GrantTypeConversionService { public GrantTypeRepresentation convert(GrantType grantType) { GrantTypeRepresentation representation = new GrantTypeRepresentation(grantType.getId()); representation.setCreated(grantType.getCreated()); representation.setUpdated(grantType.getUpdated()); representation.setName(grantType.getName()); representation.setDescription(grantType.getDescription()); return representation; }  }
GrantTypeConversionService { public GrantTypeRepresentation convert(GrantType grantType) { GrantTypeRepresentation representation = new GrantTypeRepresentation(grantType.getId()); representation.setCreated(grantType.getCreated()); representation.setUpdated(grantType.getUpdated()); representation.setName(grantType.getName()); representation.setDescription(grantType.getDescription()); return representation; }  GrantTypeRepresentation convert(GrantType grantType); GrantType convert(GrantTypeRepresentation representation); GrantType convert(GrantTypeRepresentation representation, GrantType grantType); }
GrantTypeConversionService { public GrantTypeRepresentation convert(GrantType grantType) { GrantTypeRepresentation representation = new GrantTypeRepresentation(grantType.getId()); representation.setCreated(grantType.getCreated()); representation.setUpdated(grantType.getUpdated()); representation.setName(grantType.getName()); representation.setDescription(grantType.getDescription()); return representation; }  GrantTypeRepresentation convert(GrantType grantType); GrantType convert(GrantTypeRepresentation representation); GrantType convert(GrantTypeRepresentation representation, GrantType grantType);  }