@Test public void shouldCallEntityFromDtoCreatorCreate() throws Exception { mappingManager.create(contentType, inputMessage, dtoParam); verify(mapperDelegator, times(1)).create(userDto); }
public DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam) { DtoInformation dtoInfo = getDtoInformation(dtoParam); Object dto = convertToDto(contentType, inputMessage, dtoInfo.getDtoType()); handle(dto); Object entity = mapperDelegator.create(dto); return new DtoAndEntityWrapper(dto, entity); }
MappingManager { public DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam) { DtoInformation dtoInfo = getDtoInformation(dtoParam); Object dto = convertToDto(contentType, inputMessage, dtoInfo.getDtoType()); handle(dto); Object entity = mapperDelegator.create(dto); return new DtoAndEntityWrapper(dto, entity); } }
MappingManager { public DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam) { DtoInformation dtoInfo = getDtoInformation(dtoParam); Object dto = convertToDto(contentType, inputMessage, dtoInfo.getDtoType()); handle(dto); Object entity = mapperDelegator.create(dto); return new DtoAndEntityWrapper(dto, entity); } MappingManager(@NonNull MapperDelegator mapperDelegator, @NonNull List<HttpMessageConverter<?>> messageConverters,
            @NonNull DtoInformationRegistry dtoInfoRegistry); }
MappingManager { public DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam) { DtoInformation dtoInfo = getDtoInformation(dtoParam); Object dto = convertToDto(contentType, inputMessage, dtoInfo.getDtoType()); handle(dto); Object entity = mapperDelegator.create(dto); return new DtoAndEntityWrapper(dto, entity); } MappingManager(@NonNull MapperDelegator mapperDelegator, @NonNull List<HttpMessageConverter<?>> messageConverters,
            @NonNull DtoInformationRegistry dtoInfoRegistry); DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam); DtoAndEntityWrapper merge(MediaType contentType, HttpInputMessage inputMessage, RepositoryInvoker invoker, Serializable id,
            String dtoParam); void addHandler(BeforeCreateMappingHandler handler); void addHandler(BeforeUpdateMappingHandler handler); void addHandler(BeforeCreateMappingHandler handler, int index ); void addHandler(BeforeUpdateMappingHandler handler, int index); }
MappingManager { public DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam) { DtoInformation dtoInfo = getDtoInformation(dtoParam); Object dto = convertToDto(contentType, inputMessage, dtoInfo.getDtoType()); handle(dto); Object entity = mapperDelegator.create(dto); return new DtoAndEntityWrapper(dto, entity); } MappingManager(@NonNull MapperDelegator mapperDelegator, @NonNull List<HttpMessageConverter<?>> messageConverters,
            @NonNull DtoInformationRegistry dtoInfoRegistry); DtoAndEntityWrapper create(MediaType contentType, HttpInputMessage inputMessage, String dtoParam); DtoAndEntityWrapper merge(MediaType contentType, HttpInputMessage inputMessage, RepositoryInvoker invoker, Serializable id,
            String dtoParam); void addHandler(BeforeCreateMappingHandler handler); void addHandler(BeforeUpdateMappingHandler handler); void addHandler(BeforeCreateMappingHandler handler, int index ); void addHandler(BeforeUpdateMappingHandler handler, int index);  }