personium / personium-core

Core module of Personium
https://personium.io
Apache License 2.0
88 stars 16 forks source link

Keep project folder clean after unit test #615

Closed yoh1496 closed 2 years ago

yoh1496 commented 3 years ago

In unit test, these lines create a file in working directory.

https://github.com/personium/personium-core/blob/4f210419aeee7341b6731a13dd6ca16acbdb6bd0/src/test/java/io/personium/core/model/file/BinaryDataAccessorTest.java#L51

https://github.com/personium/personium-core/blob/4f210419aeee7341b6731a13dd6ca16acbdb6bd0/src/test/java/io/personium/core/model/file/BinaryDataAccessorTest.java#L66

https://github.com/personium/personium-core/blob/4f210419aeee7341b6731a13dd6ca16acbdb6bd0/src/test/java/io/personium/core/model/file/BinaryDataAccessorTest.java#L81

It would be good that these files are deleted after the test case. And more, these files should be created in temporary directory.