Commit 469973b4 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Enriko Käsper

See merge request teis/payments-service!45
parents 99e17a4c 730c73d5
theGroup=ee.sm.ti.teis
theVersion=1.7.0
theVersion=1.8.0
pluginVersion=1.1.1
commonsVersion=1.8.0
commonsVersion=1.10.0
officeApiGatewayVersion=1.8.0
mapstructVersion=1.3.0.Final
querydslVersion=4.1.3
package ee.sm.ti.teis.payments.claim.config;
import ee.sm.ti.teis.ErrorDTO;
import ee.sm.ti.teis.commongateway.payments.claim.request.ClaimRequest;
import ee.sm.ti.teis.commongateway.payments.claim.request.ClaimsRequest;
import ee.sm.ti.teis.commongateway.payments.claim.request.CreateClaimRequest;
import ee.sm.ti.teis.commongateway.payments.claim.request.DeleteClaimRequest;
import ee.sm.ti.teis.commongateway.payments.claim.request.PatchClaimRequest;
import ee.sm.ti.teis.commongateway.payments.claim.request.*;
import ee.sm.ti.teis.configuration.QueueList;
import ee.sm.ti.teis.configuration.TeisQueue;
import ee.sm.ti.teis.domain.payments.claim.Claim;
import ee.sm.ti.teis.domain.payments.claim.DeleteClaim;
import ee.sm.ti.teis.domain.payments.claim.GetClaim;
import ee.sm.ti.teis.domain.payments.claim.PatchClaim;
import ee.sm.ti.teis.domainrequest.DomainCreateDTO;
import ee.sm.ti.teis.domainrequest.DomainDeleteDTO;
import ee.sm.ti.teis.domainrequest.DomainQueryDTO;
import ee.sm.ti.teis.domainrequest.DomainQueryResponseDto;
import ee.sm.ti.teis.domainrequest.DomainResponseDTO;
import ee.sm.ti.teis.domainrequest.*;
import ee.sm.ti.teis.servicecommon.util.TestDataImportService;
import java.util.ArrayList;
......@@ -36,7 +28,7 @@ public class ClaimQueueConfig implements QueueList {
@Override
public void updateQueues(ArrayList<TeisQueue> queues) {
String queueName = "payments-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_SUFIX;
String queueName = "payments-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_SUFFIX;
addGwQueue(queues, "gwResetTestData", TestDataImportService.RESET_TEST_DATA_ROUTING_KEY, queueName);
addGwQueue(queues, "gwCreateClaimQueue", CreateClaimRequest.ROUTING_KEY, GW_CREATE_CLAIM_QUEUE);
......
......@@ -6,14 +6,16 @@ import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import static ee.sm.ti.teis.servicecommon.util.TestDataImportService.*;
@Service
@AllArgsConstructor
@Profile({"dev", "local", "test"})
public class ResetTestDataListener {
private TestDataImportService testDataImportService;
private final TestDataImportService testDataImportService;
@RabbitListener(queues = {"payments-service" + TestDataImportService.RESET_TEST_DATA_QUEUE_SUFIX})
@RabbitListener(queues = {"payments-service" + RESET_TEST_DATA_QUEUE_SUFFIX})
public void resetTestData(String providedMagicString) {
testDataImportService.resetTestData(providedMagicString);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment