Skip to content

Conversation

@Blue-B-code
Copy link

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

here we start implementing test in app by the function "SaveInsuree" in ClientAndroidInterface.java class. this function retrieve an Json string of insuree data and apply some checks to parse the data that will be send to sqlite database to be save as new insuree

We had to change several methods and attributes from private to protected because Mockito cannot mock private elements, and we also added a new constructor in the ClientAndroidInterface.java class adapted for testing and mocks.

Capture d’écran du 2025-12-09 17-06-02

@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
assertEquals(5, 2 + 3);
Copy link
Contributor

Choose a reason for hiding this comment

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

a quoi sert ceci?

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