mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-28 18:34:30 +01:00
rename controller
This commit is contained in:
@@ -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(
|
||||
@@ -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,
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user