Skip to content

Conversation

thangqp
Copy link
Collaborator

@thangqp thangqp commented Jun 30, 2025

No description provided.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Copy link

DynamicMarginCalculationResultRepository resultRepository;

@Autowired
DynamicMarginCalculationResultService dynamicSecurityAnalysisResultService;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DynamicMarginCalculationResultService dynamicSecurityAnalysisResultService;
DynamicMarginCalculationResultService dynamicMarginCalculationResultService;

private static final Logger LOGGER = LoggerFactory.getLogger(RestResponseEntityExceptionHandler.class);

@ExceptionHandler(DynamicMarginCalculationException.class)
protected ResponseEntity<Object> handleDynamicSecurityAnalysisException(DynamicMarginCalculationException exception) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
protected ResponseEntity<Object> handleDynamicSecurityAnalysisException(DynamicMarginCalculationException exception) {
protected ResponseEntity<Object> handleDynamicMarginCalculationException(DynamicMarginCalculationException exception) {

}

@Test
void testCrud() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's heavy to add all those tests for an "empty" server. You could make it simpler before you really code into your DMC server

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, the result service is useful for verifying whether Spring Framework configurations (such as JPA and database settings) are functioning correctly.

Additionally, it helps reduce the amount of code in the next ticket, which will focus more on functional aspects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants