Skip to content

Commit

Permalink
fix sonarqube QG issue
Browse files Browse the repository at this point in the history
  • Loading branch information
petervekony committed Dec 13, 2023
1 parent c52bb6f commit 8b4ff7e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ public class KafkaServiceTests {
@InjectMocks private KafkaService kafkaService;

@BeforeEach
public void setUp() {
void setUp() {
MockitoAnnotations.openMocks(this);
}

@Test
public void testConsumeTokenValidationResponse() {
void testConsumeTokenValidationResponse() {
TokenValidationResponse response = new TokenValidationResponse();
response.setUserId("123");
response.setName("testUser");
Expand All @@ -60,7 +60,7 @@ public void testConsumeTokenValidationResponse() {
}

@Test
public void testValidateTokenWithUserMicroserviceCacheHit() {
void testValidateTokenWithUserMicroserviceCacheHit() {
TokenValidationRequest request = new TokenValidationRequest();
request.setCorrelationId("123");
request.setJwtToken("cachedToken");
Expand All @@ -80,7 +80,7 @@ public void testValidateTokenWithUserMicroserviceCacheHit() {
}

@Test
public void testDeleteUserProducts() {
void testDeleteUserProducts() {
UserProfileDeleteMessage message = new UserProfileDeleteMessage();
message.setUserId("123");

Expand All @@ -90,7 +90,7 @@ public void testDeleteUserProducts() {
}

@Test
public void testValidateOwnership() {
void testValidateOwnership() {
ProductOwnershipRequest request = new ProductOwnershipRequest();
request.setProductId("123");
request.setUserId("456");
Expand Down

0 comments on commit 8b4ff7e

Please sign in to comment.