Depracated code removed 2
This commit is contained in:
		| @@ -36,11 +36,11 @@ public class EventController { | ||||
|     @GetMapping | ||||
|     public ResponseEntity getHistory(@RequestBody(required = false) EventRequestDto event){ | ||||
|         event = EventRequestDto.builder() | ||||
|                 .localDateTimeFrom(LocalDateTime.of(2021, 3, 4, 10, 1)) | ||||
|                 .localDateTimeTo(LocalDateTime.of(2021, 3, 4, 15, 40)) | ||||
|                 .clientUUID(UUID.fromString("3482382d-76df-45bd-825e-1c742c989796")) | ||||
|                 .localDateTimeFrom(LocalDateTime.of(2021, 3, 3, 10, 1)) | ||||
|                 .localDateTimeTo(LocalDateTime.of(2021, 3, 5, 19, 40)) | ||||
|                 .clientUUID(UUID.fromString("bd135778-e256-4a0f-b4fc-c8dbdfbb5a11")) | ||||
|                 .build(); | ||||
|         return new ResponseEntity<List<Event>>(service.getEventsByDateTimeAndBusinessKeys(event), HttpStatus.OK); | ||||
|         return new ResponseEntity(service.getEventsByDateTimeAndBusinessKeys(event), HttpStatus.OK); | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -1,40 +0,0 @@ | ||||
| package com.release11.klaus.model; | ||||
|  | ||||
| import com.release11.klaus.model.constraints.HttpCode; | ||||
| import lombok.*; | ||||
|  | ||||
| import javax.validation.constraints.NotNull; | ||||
| import javax.validation.constraints.Positive; | ||||
| import java.io.Serializable; | ||||
|  | ||||
| /** | ||||
|  * it appears that instance of this class contains info about mocked response | ||||
|  * To which UUID it is bound, whats its id, the list of headers, type of content and message body, | ||||
|  * as well as status it has to return. | ||||
|  */ | ||||
| @Data | ||||
| @Builder | ||||
| @ToString | ||||
| @NoArgsConstructor | ||||
| @AllArgsConstructor | ||||
| public class MockedMessageDtoTest implements Serializable { | ||||
| //    private UUID clientUUID; | ||||
|     @NotNull | ||||
|     @Positive | ||||
|     private Integer mockedResponseId = 1; | ||||
|     private String mediaType = "media"; | ||||
|     private String messageBody = "clean body"; | ||||
| //    private Map<String, String> httpHeaders; | ||||
|     @HttpCode | ||||
|     private Integer httpStatus = 200; | ||||
|  | ||||
| //    public MockedMessageDtoTest(UUID clientUUID) { | ||||
| //        this.clientUUID = clientUUID; | ||||
| //    } | ||||
| //    public MockedMessageDtoTest(UUID clientUUID, Map<String,String> httpHeaders) { | ||||
| //        this.clientUUID = clientUUID; | ||||
| //        this.httpHeaders = httpHeaders; | ||||
| //    } | ||||
|  | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user