fix this
This commit is contained in:
parent
0159565bf1
commit
8508ad1d8b
1 changed files with 6 additions and 7 deletions
|
@ -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")));
|
||||
|
|
Loading…
Reference in a new issue