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

Add test cases for FIUService.java class #21

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Aug 10, 2023

Description

This PR adds test cases for the methods in the FIUService.java class. The test cases are written in the FIUServiceTest.java class, which is located in the test directory of the project. The dependencies of the FIUService class are mocked using Mockito to simulate their behavior during the execution of the test cases. The goal is to ensure that the methods in the FIUService class are working as expected and to provide maximum coverage for the code.

Summary

  • Created FIUServiceTest.java in the test directory to contain test cases for the methods in the FIUService.java class.
  • Added test cases for the createConsent() method in the FIUServiceTest.java class.
  • Added test cases for the createDataRequest() method in the FIUServiceTest.java class.
  • Added test cases for the receiveSessionNotification() method in the FIUServiceTest.java class.
  • Added test cases for the getAndSaveData() method in the FIUServiceTest.java class.
  • Mocked the dependencies of the FIUService class using Mockito in the FIUServiceTest.java class.
  • Ensured maximum coverage for the code in the FIUService.java class.

Fixes #18.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-test-cases-for-fiu-service_1

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Aug 10, 2023
sweep-ai bot added 25 commits August 17, 2023 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants