fix tests

pull/567/head
Igor 2023-09-20 12:14:27 +03:00
parent caa12725b6
commit ca0becc07f
2 changed files with 6 additions and 6 deletions

View File

@ -16,13 +16,13 @@ public enum FactoryResolverPriority {
HIGHEST(2),
LOWEST(0);
private final int priority;
private final int value;
FactoryResolverPriority(int priority) {
this.priority = priority;
FactoryResolverPriority(int value) {
this.value = value;
}
public int getPriority() {
return priority;
public int getValue() {
return value;
}
}

View File

@ -195,7 +195,7 @@ public class FactoryService extends Service {
return false;
}
})
.min(comparingInt(r -> r.priority().ordinal()));
.max(comparingInt(r -> r.priority().getValue()));
if (resolverOptional.isPresent()) {
return resolverOptional.get();
}