Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickackermann committed Nov 20, 2024
1 parent 036bbee commit 833d3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void analyzeLayerMappings() {
analyzeCacheRequirements(pathElements, cacheRequirements);
var type = ((AttributeDef) pathElements.getLast().element).getDomainResolvingAliases();
if (!(type instanceof EnumerationType enumerationType)) {
throw new IllegalArgumentException("Only enumeratino types supported: " + baseAttributeName);
throw new IllegalArgumentException("Only enumeration types supported: " + baseAttributeName);
}

var attrFilter = new PathMatcher(pathElements, values.stream().map(v -> getTranslatedEnumValue(enumerationType, v)).toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void mappingContainsNonExistentValue() {
public void mappingContainsTextAttributeFilter() {
var layerMappings = createTextLayerMapping(Map.of("Bemerkung", List.of("SULTIOND")));
var exception = assertThrows(IllegalArgumentException.class, () -> new ObjectMapper(layerMappings));
assertEquals("Only enumeratino types supported: Bemerkung", exception.getMessage());
assertEquals("Only enumeration types supported: Bemerkung", exception.getMessage());
}

@Test
Expand Down

0 comments on commit 833d3f2

Please sign in to comment.