Skip to content

Commit

Permalink
remove some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaconsalvi committed Dec 12, 2024
1 parent a771eec commit 2202cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public SendAPIControllerImpl(SendRTPService sendRTPService, RtpMapper rtpMapper)
public Mono<ResponseEntity<Void>> createRtp(Mono<CreateRtpDto> createRtpDto,
ServerWebExchange exchange) {
return createRtpDto
.map(rtpDto -> rtpMapper.toRtp(rtpDto))
.flatMap(rtp -> sendRTPService.send(rtp))
.map(rtpMapper::toRtp)
.flatMap(sendRTPService::send)
.thenReturn(ResponseEntity.status(201).build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
import java.time.LocalDate;
import static org.assertj.core.api.Assertions.assertThat;

public class RtpMapperTest {
class RtpMapperTest {
private RtpMapper rtpMapper;

@BeforeEach
public void setUp() {
void setUp() {
rtpMapper = new RtpMapper();
}

@Test
public void testToRtp() {
void testToRtp() {
CreateRtpDto createRtpDto = new CreateRtpDto();
createRtpDto.setNoticeNumber("12345");
createRtpDto.setAmount(BigDecimal.valueOf(100));
Expand Down

0 comments on commit 2202cbd

Please sign in to comment.