Skip to content

Commit

Permalink
fix : sonar Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Dec 8, 2023
1 parent fcf7a66 commit 284a7ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ public Mono<ProductResponse> findProductById(Long id) {
productResponse ->
getInventoryByProductCode(productResponse.code())
.map(
inventoryDto -> {
return productResponse.withInStock(
inventoryDto.availableQuantity() > 0);
}));
inventoryDto ->
productResponse.withInStock(
inventoryDto.availableQuantity()
> 0)));
}

private Mono<InventoryResponse> getInventoryByProductCode(String code) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ KafkaStreamsConfiguration defaultKafkaStreamsConfig(
KafkaConnectionDetails connectionDetails,
KafkaProperties kafkaProperties,
DeadLetterPublishingRecoverer deadLetterPublishingRecoverer) {
Map<String, Object> properties = kafkaProperties.buildStreamsProperties();
Map<String, Object> properties = kafkaProperties.buildStreamsProperties(null);
properties.put(
ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG,
connectionDetails.getStreamsBootstrapServers());
Expand Down
2 changes: 1 addition & 1 deletion test-em-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function setupTestData() {

# Verify that communication between catalog-service and inventory service is established
assertCurl 200 "curl -k http://$HOST:$PORT/catalog-service/api/catalog/productCode/$PROD_CODE_1?fetchInStock=true"
assertEqual $PROD_CODE_1 $(echo ${RESPONSE} | jq .code)
assertEqual \"${PROD_CODE_1}\" $(echo ${RESPONSE} | jq .code)
assertEqual \"true\" $(echo ${RESPONSE} | jq .inStock)

body="{\"name\": \"$CUSTOMER_NAME"
Expand Down

0 comments on commit 284a7ac

Please sign in to comment.