Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added unit tests to the project #10

Merged
merged 19 commits into from
Aug 2, 2024
Merged

Added unit tests to the project #10

merged 19 commits into from
Aug 2, 2024

Conversation

dmccoystephenson
Copy link
Member

@dmccoystephenson dmccoystephenson commented Jul 12, 2024

Problem

There are no unit tests implemented for this project.

Solution

Unit tests have been implemented.

New Classes

In order to make the project more testable, the following classes have been introduced to wrap certain operations:

  • HttpClientFactory
  • HttpEntityStringifier
  • KeyStoreReader
  • RestTemplateFactory
  • SSLContextFactory

Additionally, the Message class has been moved to its own file.

Typo Correction

The 'certficates' typo has been corrected to 'certificates' across the board.

Testing

Unit tests have been verified to pass & the signing functionality has been verified to work.

Copy link

@drewjj drewjj left a comment

Choose a reason for hiding this comment

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

Everything is looking great! These are some great additions for this repository and everything runs perfectly while running the tests through a command line. I did encounter an issue with the ApplicationTest test() test in VSCode. It appears JMockit is not being properly initialized in the Java TestRunner. This might be due to the dev container configuration but it would be good to get this resolved since we do want to include that in this pull request.

Copy link

@drewjj drewjj left a comment

Choose a reason for hiding this comment

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

Switching to an approval with comments. My previous comment is still my only request. Might be worth to make a backlog item for it.

Copy link

@payneBrandon payneBrandon left a comment

Choose a reason for hiding this comment

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

Just a couple questions

Copy link

@payneBrandon payneBrandon left a comment

Choose a reason for hiding this comment

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

lgtm!

@payneBrandon payneBrandon merged commit 7d99026 into dev Aug 2, 2024
4 checks passed
@payneBrandon payneBrandon deleted the testing/add-unit-tests branch August 2, 2024 20:26
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.

3 participants