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

Android unit test #425

Merged
merged 20 commits into from
Jan 24, 2022
Merged

Android unit test #425

merged 20 commits into from
Jan 24, 2022

Conversation

FabianDevel
Copy link
Contributor

@FabianDevel FabianDevel commented Jan 6, 2022

  • Fixing old tests in FileControllerTests
  • add tests for api calls (In progress)

@FabianDevel FabianDevel self-assigned this Jan 6, 2022
@FabianDevel FabianDevel requested a review from a team January 6, 2022 15:14
@FabianDevel FabianDevel marked this pull request as draft January 6, 2022 15:24
@FabianDevel FabianDevel changed the title WIP:Android unit test Android unit test Jan 6, 2022
@FabianDevel FabianDevel marked this pull request as ready for review January 13, 2022 10:35
@JorisBodin JorisBodin added this to the 4.1.0 milestone Jan 13, 2022
@KevinBoulongne KevinBoulongne requested a review from a team January 14, 2022 10:33
Comment on lines 475 to 471
Assert.assertEquals("file id should be the same", it.data?.id, file.id)
Assert.assertEquals("file name should be updated to 'Trash test'", newName, it.data?.name)
Copy link
Member

Choose a reason for hiding this comment

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

If data is null, the test will not be run, so don't do this

sirambd and others added 13 commits January 19, 2022 10:20
Fix the old tests
add a first test for getFileById() method
test not important for now
add first parts of api tests
Found a bug on private dropbox deletion
Add a todo for api-v2
To test trashLifecycle, replace the drive id in env file with the empty drive
To test dropboxLifeCycle, use the infomaniak dev test drive
JorisBodin and others added 2 commits January 20, 2022 17:29
@sirambd sirambd merged commit b3d9e22 into master Jan 24, 2022
@sirambd sirambd deleted the android-unit-test branch January 24, 2022 13:22
@JorisBodin JorisBodin mentioned this pull request Mar 14, 2022
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.

4 participants