Currently, there is no test suite for the FileRepository, therefore the expectations of the FileRepository API are not clearly defined across implementations.
An implementation of the test suite should also be implemented for each backend type:
MongoDB
InMemory
Rules
Write Test first
Add Test for each operation, use [1] as reference
Add Test if exceptions are thrown as expected (as defined in save, find, delete)
Currently, there is no test suite for the FileRepository, therefore the expectations of the FileRepository API are not clearly defined across implementations.
An implementation of the test suite should also be implemented for each backend type:
Rules
References/Entrypoints
[1] https://github.com/eclipse-basyx/basyx-java-server-sdk/blob/main/basyx.common/basyx.filerepository-backend/src/main/java/org/eclipse/digitaltwin/basyx/core/filerepository/FileRepository.java [2] https://github.com/eclipse-basyx/basyx-java-server-sdk/blob/main/basyx.common/basyx.filerepository-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/core/filerepository/InMemoryFileRepository.java [3] https://github.com/eclipse-basyx/basyx-java-server-sdk/blob/main/basyx.common/basyx.filerepository-backend-mongodb/src/main/java/org/eclipse/digitaltwin/basyx/core/filerepository/MongoDBFileRepository.java