Skip to content

Commit

Permalink
Delete old testing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulaziz-Hassan committed Apr 29, 2024
1 parent b352fef commit 726d07d
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.workup.payments;

import com.workup.shared.commands.payments.paymentrequest.requests.CreatePaymentRequestRequest;
import com.workup.shared.enums.ServiceQueueNames;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
Expand All @@ -18,20 +15,6 @@ public static void main(String[] args) {
SpringApplication.run(PaymentsApplication.class, args);
}

@Bean
public ApplicationRunner runner(AmqpTemplate template) {
return args -> {
CreatePaymentRequestRequest createPaymentRequest =
CreatePaymentRequestRequest.builder()
.withAmount(1200)
.withDescription("Payment for services rendered")
.withClientId("3")
.withFreelancerId("4")
.build();
template.convertSendAndReceive(ServiceQueueNames.PAYMENTS, createPaymentRequest);
};
}

@Bean
public Queue myQueue() {
return new Queue(ServiceQueueNames.PAYMENTS);
Expand Down

0 comments on commit 726d07d

Please sign in to comment.