Skip to content

Improve test coverage for service and controller layers#104

Open
gcatanese wants to merge 1 commit intomainfrom
improve-test-coverage
Open

Improve test coverage for service and controller layers#104
gcatanese wants to merge 1 commit intomainfrom
improve-test-coverage

Conversation

@gcatanese
Copy link
Copy Markdown
Member

Summary

Improves unit test coverage from 18 to 38 tests by adding tests for previously untested classes.

New test classes

  • OpenApiOperationServiceTest — covers isUrl, extractExampleByName, and getRootFolder with various inputs
  • WorkflowServiceTest — covers getFromContent and getFromUrl scenarios using Mockito to mock FileService

Extended test class

  • WorkflowControllerTest — adds tests for components assertion and exception propagation (InvalidContentException, UnexpectedErrorException)

Also updates the openapi-workflow-parser dependency to 0.0.5-SNAPSHOT.

Add unit tests for OpenApiOperationService, WorkflowService and additional
WorkflowController scenarios, increasing total tests from 18 to 38.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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.

1 participant