Skip to content

Conversation

@Blue-B-code
Copy link

@Blue-B-code Blue-B-code commented Dec 11, 2025

-Description
Here I've implemented a basic test for the saveClaim method of the ClaimActivity.java class. We used Robolectric to simulate an Android environment and access the application context, which allowed us to test an Android Activity, albeit within certain limitations.

-Type of change
Chore(CI/CD)

-CheckLists
units test added : ClaimActivityTest.java

Similarly, for the Policies app, we had to change certain attributes or methods from private to protected to be able to mock them with Mockito.

@Blue-B-code Blue-B-code changed the title test claimAct.saveClaim test ClaimActivity.saveClaim Dec 16, 2025
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