From 8508ad1d8bd63da9e49a455cfccdef46ccf8f898 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 27 Oct 2024 16:10:10 +0100 Subject: [PATCH] fix this --- src/test/java/jarupdater/MockMetadataDAO.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/test/java/jarupdater/MockMetadataDAO.java b/src/test/java/jarupdater/MockMetadataDAO.java index 82dd3e2..3e01760 100644 --- a/src/test/java/jarupdater/MockMetadataDAO.java +++ b/src/test/java/jarupdater/MockMetadataDAO.java @@ -1,15 +1,14 @@ package jarupdater; +import eu.m724.jarupdater.live.MetadataDAO; +import eu.m724.jarupdater.object.Version; + import java.io.IOException; -import java.nio.file.NoSuchFileException; import java.util.Arrays; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; -import eu.m724.jarupdater.live.MetadataDAO; -import eu.m724.jarupdater.object.Version; - public class MockMetadataDAO implements MetadataDAO { @Override @@ -25,13 +24,13 @@ public class MockMetadataDAO implements MetadataDAO { switch (versionLabel) { case "1.0": - version = new Version(1, 100, "1.0", fileUrl, "dd3822ed965b2820aa0800f04b86f26d0b656fca3b97ddd264046076f81e3a24"); + version = new Version(1, 100, "1.0", fileUrl, null, "dd3822ed965b2820aa0800f04b86f26d0b656fca3b97ddd264046076f81e3a24"); break; case "1.1": - version = new Version(2, 200, "1.1", fileUrl, "4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824"); + version = new Version(2, 200, "1.1", fileUrl, null,"4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824"); break; case "latest": - version = new Version(2, 200, "1.1", fileUrl, "4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824"); + version = new Version(2, 200, "1.1", fileUrl, null, "4d59994f607b89987d5bff430a4229edbbb045b3da9eaf1c63fa8e5fb208d824"); break; default: return CompletableFuture.failedFuture(new CompletionException(new IOException("no such version")));