From 9b97390a9c71ad5983a4c82c6933a98dacce1083 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 4 Sep 2024 17:04:19 +0200 Subject: [PATCH] Fix DependencyResolver tests --- .../srctests/utility/DependencyResolverTest.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/DependencyResolverTest.java b/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/DependencyResolverTest.java index 906c28525..235ce80f2 100644 --- a/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/DependencyResolverTest.java +++ b/base/src/test/java/de/staropensource/sosengine/base/srctests/utility/DependencyResolverTest.java @@ -94,6 +94,7 @@ class DependencyResolverTest extends TestBase { // Vector 2 dependencies = new HashSet<>(); dependencies.add("test0=49"); + dependencies.add("test1=999"); vectors.add( new DependencyVector.Builder() .setIdentifier("test2") @@ -164,7 +165,7 @@ class DependencyResolverTest extends TestBase { .build() ); // Vector 5 - dependencies.add("test4>998<100"); + dependencies.add("test4>998<1000"); vectors.add( new DependencyVector.Builder() .setIdentifier("test5") @@ -235,8 +236,8 @@ class DependencyResolverTest extends TestBase { .setDependencies(dependencies) .build() ); - // Vector 6 - dependencies.add("test5>998<100"); + // Vector 6p + dependencies.add("test5>998<1000"); vectors.add( new DependencyVector.Builder() .setIdentifier("test6") @@ -266,7 +267,7 @@ class DependencyResolverTest extends TestBase { try { resolver.resolve(); } catch (UnmetDependenciesException exception) { - getLogger().error("Dependency resolution failed: Unmet dependencies found:"); + getLogger().error("Dependency resolution failed:"); for (DependencyVector vector : exception.getUnmetDependencies().keySet()) getLogger().error("-> " + vector.getIdentifier() + "=" + vector.getVersion() + ": " + exception.getUnmetDependencies().get(vector)); @@ -351,6 +352,7 @@ class DependencyResolverTest extends TestBase { ); // Vector 2 dependencies = new HashSet<>(); + dependencies.add("testNULL"); dependencies.add("test1>999"); vectors.add( new DependencyVector.Builder() @@ -483,7 +485,7 @@ class DependencyResolverTest extends TestBase { try { resolver.resolve(); } catch (UnmetDependenciesException exception) { - getLogger().error("Dependency resolution failed (great!): Unmet dependencies found:"); + getLogger().error("Dependency resolution failed (great!):"); for (DependencyVector vector : exception.getUnmetDependencies().keySet()) getLogger().error("-> " + vector.getIdentifier() + "=" + vector.getVersion() + ": " + exception.getUnmetDependencies().get(vector));