Skip to content

Commit

Permalink
Fixes Serialization of AAS Environment (eclipse-basyx#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedJannik authored Jul 5, 2024
1 parent 27019a5 commit 4dd6827
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,7 @@ public void visit(Operation operation) {
}

private Set<String> getConceptDescriptionIds(List<Key> keys) {
return keys.stream().filter(this::isKeyOfTypeCD).map(Key::getValue).collect(Collectors.toSet());
}

private boolean isKeyOfTypeCD(Key key) {
return key.getType().equals(KeyTypes.CONCEPT_DESCRIPTION);
return keys.stream().map(Key::getValue).collect(Collectors.toSet());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class TestConceptDescriptionIdCollector {
public void getAllConceptDescriptionIdsWithDefaultSetup() {
defaultSetup();

Set<String> expectedCDIDs = Sets.newHashSet("0173-1#02-BAA120#008", "http://customer.com/cd/1/1/18EBD56F6B43D895");
Set<String> expectedCDIDs = Sets.newHashSet("0173-1#02-BAA120#008", "http://customer.com/cd/1/1/18EBD56F6B43D895","0173-1#01-AFZ615#016");

ConceptDescriptionIdCollector cdIdCollector = new ConceptDescriptionIdCollector(environment);

Expand All @@ -49,7 +49,7 @@ public void getAllConceptDescriptionIdsWithDefaultSetup() {
public void getAllConceptDescriptionIdsWithCustomtSetup() {
customSetup();

Set<String> expectedCDIDs = Sets.newHashSet("dummyProperty1CDId", "dummySMC1CDId", "dummyProperty3CDId");
Set<String> expectedCDIDs = Sets.newHashSet("dummyProperty1CDId", "dummySMC1CDId", "dummyProperty3CDId","dummyProperty2CapabilityId","dummyNoCDSemanticPropertyBlobId");

ConceptDescriptionIdCollector cdIdCollector = new ConceptDescriptionIdCollector(environment);

Expand Down

0 comments on commit 4dd6827

Please sign in to comment.