From f578360395849867eb43b6eff86b488760c5ff92 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 31 Aug 2024 13:23:35 +0200 Subject: [PATCH] Did I accidentally commit test code? --- .../sosengine/testapp/Main.java | 54 ------------------- 1 file changed, 54 deletions(-) diff --git a/testapp/src/main/java/de/staropensource/sosengine/testapp/Main.java b/testapp/src/main/java/de/staropensource/sosengine/testapp/Main.java index a5d8503..a63b425 100644 --- a/testapp/src/main/java/de/staropensource/sosengine/testapp/Main.java +++ b/testapp/src/main/java/de/staropensource/sosengine/testapp/Main.java @@ -119,60 +119,6 @@ public final class Main { // Say hello to the world! logger.info("Hello world!"); - // DependencyResolver test - DependencyResolver resolver = new DependencyResolver(); - - Set<@NotNull String> depsT1 = new HashSet<>(); - Set<@NotNull String> provT1 = new HashSet<>(); - Set<@NotNull String> depsT2 = new HashSet<>(); - Set<@NotNull String> provT2 = new HashSet<>(); - Set<@NotNull String> depsT3 = new HashSet<>(); - Set<@NotNull String> provT3 = new HashSet<>(); - Set<@NotNull String> depsT4 = new HashSet<>(); - Set<@NotNull String> provT4 = new HashSet<>(); - - depsT2.add("test1=5"); - provT3.add("test5=11"); - depsT4.add("test3>100<10"); - - resolver.addVectors(new DependencyVector[]{ - new DependencyVector.Builder() - .setIdentifier("test1") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setVersion("5") - .setDependencies(depsT1) - .setProvides(provT1) - .build(), - new DependencyVector.Builder() - .setIdentifier("test2") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setVersion("1") - .setDependencies(depsT2) - .setProvides(provT2) - .build(), - new DependencyVector.Builder() - .setIdentifier("test3") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setVersion("106") - .setDependencies(depsT3) - .setProvides(provT3) - .build(), - new DependencyVector.Builder() - .setIdentifier("test4") - .setVersioningSystem(OneNumberVersioningSystem.class) - .setVersion("69") - .setDependencies(depsT4) - .setProvides(provT4) - .build() - }); - - try { - resolver.resolve(); - } catch (Exception exception) { - logger.crash("Test resolution failed", exception); - } - logger.warn("Test resolution succeeded"); - // Choose windowing API to use if (!WindowingSubsystem.getInstance().setApi()) logger.crash("No windowing API is compatible");