rename controller

This commit is contained in:
Carsten Otto
2022-06-06 16:10:26 +02:00
parent f840b30c01
commit 973a3ef2be
3 changed files with 6 additions and 6 deletions

View File

@@ -41,8 +41,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
@SuppressWarnings("CPD-START")
@Import({ObjectMapperConfiguration.class, PaymentStatusStream.class})
@WebMvcTest(controllers = PickhardtPaymentsController.class)
class PickhardtPaymentsControllerIT {
@WebMvcTest(controllers = PaymentsController.class)
class PaymentsControllerIT {
private static final String PREFIX = "/api/payments";
private static final String PAYMENT_REQUEST = "xxx";
private static final PaymentOptions PAYMENT_OPTIONS = new PaymentOptions(

View File

@@ -25,7 +25,7 @@ import static org.springframework.http.MediaType.APPLICATION_NDJSON;
@RestController
@RequestMapping("/api/payments/")
public class PickhardtPaymentsController {
public class PaymentsController {
private static final PaymentOptionsDto PAYMENT_OPTIONS_DTO = PaymentOptionsDto.DEFAULT;
private final MultiPathPaymentSplitter multiPathPaymentSplitter;
@@ -34,7 +34,7 @@ public class PickhardtPaymentsController {
private final TopUpService topUpService;
private final GraphService graphService;
public PickhardtPaymentsController(
public PaymentsController(
MultiPathPaymentSplitter multiPathPaymentSplitter,
MultiPathPaymentSender multiPathPaymentSender,
PaymentStatusStream paymentStatusStream,

View File

@@ -32,7 +32,7 @@ import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@ExtendWith(MockitoExtension.class)
class PickhardtPaymentsControllerTest {
class PaymentsControllerTest {
private static final String PAYMENT_REQUEST = "xxx";
private static final String STREAM_RESPONSE = "beep beep boop!";
@@ -55,7 +55,7 @@ class PickhardtPaymentsControllerTest {
}
@InjectMocks
private PickhardtPaymentsController controller;
private PaymentsController controller;
@Mock
private MultiPathPaymentSplitter multiPathPaymentSplitter;