eclipse-basyx / basyx-java-server-sdk

MIT License
55 stars 45 forks source link

Add tests for submodel methods #358

Closed ShehriyarShariq-Fraunhofer closed 2 months ago

ShehriyarShariq-Fraunhofer commented 2 months ago

Pull Request Template

Description of Changes

Added test cases for SubmodelRepository(getSubmodelByIdValueOnly and getSubmodelByIdMetadata) and SubmodelService(patchSubmodelElements).

The test cases are as follows:

  1. getSubmodelByIdValueOnlyExistingSubmodel
  2. getSubmodelByIdValueOnlyNonExistingSubmodel
  3. getSubmodelByIdMetadataExistingSubmodel
  4. getSubmodelByIdMetadataNonExistingSubmodel
  5. patchSubmodelElementsByAddingNewElement
  6. patchSubmodelElementsByUpdatingExistingElement
  7. patchSubmodelElementsWithMultipleElements