Skip to content

Commit 03e29c4

Browse files
committed
chore: removed unused imports
1 parent cf98e37 commit 03e29c4

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
<excludes>
177177
<exclude>**/br/com/grupo63/techchallenge/payment/api/controller/dto/PaymentStatusResponseDTO.class</exclude>
178178
<exclude>**/br/com/grupo63/techchallenge/payment/api/controller/dto/QRCodeResponseDTO.class</exclude>
179-
<exclude>**/br/com/grupo63/techchallenge/payment/gateway/order/dto/OrderDTO.java</exclude>
179+
<exclude>**/br/com/grupo63/techchallenge/payment/gateway/order/dto/OrderDTO.class</exclude>
180180
<exclude>**/br/com/grupo63/techchallenge/payment/gateway/payment/PaymentPersistenceEntity.class</exclude>
181181
<exclude>**/br/com/grupo63/techchallenge/payment/gateway/payment/PaymentJpaAdapter.class</exclude>
182182
<exclude>**/br/com/grupo63/techchallenge/payment/gateway/payment/MercadoPagoGateway.class</exclude>

src/main/java/br/com/grupo63/techchallenge/payment/api/controller/PaymentAPIController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import br.com.grupo63.techchallenge.common.api.controller.AbstractAPIController;
44
import br.com.grupo63.techchallenge.common.exception.NotFoundException;
5-
import br.com.grupo63.techchallenge.common.exception.ValidationException;
65
import br.com.grupo63.techchallenge.payment.api.controller.dto.PaymentStatusResponseDTO;
76
import br.com.grupo63.techchallenge.payment.api.controller.dto.QRCodeResponseDTO;
87
import br.com.grupo63.techchallenge.payment.controller.PaymentController;

src/main/java/br/com/grupo63/techchallenge/payment/controller/PaymentController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package br.com.grupo63.techchallenge.payment.controller;
22

33
import br.com.grupo63.techchallenge.common.exception.NotFoundException;
4-
import br.com.grupo63.techchallenge.common.exception.ValidationException;
54
import br.com.grupo63.techchallenge.payment.api.controller.dto.PaymentStatusResponseDTO;
65
import br.com.grupo63.techchallenge.payment.api.controller.dto.QRCodeResponseDTO;
76
import br.com.grupo63.techchallenge.payment.presenter.PaymentPresenter;

src/main/java/br/com/grupo63/techchallenge/payment/gateway/payment/PaymentJpaRepository.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package br.com.grupo63.techchallenge.payment.gateway.payment;
22

33
import br.com.grupo63.techchallenge.common.gateway.repository.IJpaRepository;
4-
import br.com.grupo63.techchallenge.payment.domain.Payment;
54
import org.springframework.data.jpa.repository.JpaRepository;
65
import org.springframework.data.jpa.repository.Query;
76
import org.springframework.stereotype.Repository;
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package br.com.grupo63.techchallenge.payment.usecase;
22

33
import br.com.grupo63.techchallenge.common.exception.NotFoundException;
4-
import br.com.grupo63.techchallenge.common.exception.ValidationException;
54
import br.com.grupo63.techchallenge.payment.domain.PaymentStatus;
65

76
public interface IPaymentUseCase {
87

9-
String startPayment(Long orderId) throws NotFoundException, ValidationException;
8+
String startPayment(Long orderId) throws NotFoundException;
109

11-
void finishPayment(Long orderId) throws NotFoundException, ValidationException;
10+
void finishPayment(Long orderId) throws NotFoundException;
1211

13-
PaymentStatus getPaymentStatus(Long orderId) throws NotFoundException, ValidationException;
12+
PaymentStatus getPaymentStatus(Long orderId) throws NotFoundException;
1413

1514
}

src/test/java/br/com/grupo63/techchallenge/payment/PaymentIntegrationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void setUp() {
6060

6161
@SneakyThrows
6262
@Test
63-
public void testGetPaymentStatus_EndToEnd() {
63+
void testGetPaymentStatus_EndToEnd() {
6464
when(paymentJpaRepository.findByOrderId(defaultOrderId)).thenReturn(Optional.of(defaultPaymentPersistenceEntity));
6565
when(orderGateway.getOrderById(defaultOrderId)).thenReturn(Optional.of(orderDTO));
6666

@@ -71,7 +71,7 @@ public void testGetPaymentStatus_EndToEnd() {
7171

7272
@SneakyThrows
7373
@Test
74-
public void testStartPayment_EndToEnd() {
74+
void testStartPayment_EndToEnd() {
7575
when(paymentJpaRepository.save(any())).thenReturn(defaultPaymentPersistenceEntity);
7676
when(orderGateway.getOrderById(defaultOrderId)).thenReturn(Optional.of(orderDTO));
7777
when(mercadoPagoGateway.generateQRCode(defaultOrderId, totalPrice)).thenReturn(qrData);
@@ -83,7 +83,7 @@ public void testStartPayment_EndToEnd() {
8383

8484
@SneakyThrows
8585
@Test
86-
public void testfinishPayment_EndToEnd() {
86+
void testfinishPayment_EndToEnd() {
8787
when(paymentJpaRepository.findByOrderId(defaultOrderId)).thenReturn(Optional.of(defaultPaymentPersistenceEntity));
8888

8989
payment.setStatus(PaymentStatus.PAID);

0 commit comments

Comments
 (0)