From 8f09dd29b647de02ea5c523bb73edf8b3aede92d Mon Sep 17 00:00:00 2001 From: Maximilien LEDOUX Date: Fri, 11 Mar 2022 16:03:52 +0100 Subject: [PATCH] RepositoryTests : adaptation des tests suite aux changements subis par AppData et Repository --- app/src/test/java/lightcontainer/storage/RepositoryTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/test/java/lightcontainer/storage/RepositoryTests.java b/app/src/test/java/lightcontainer/storage/RepositoryTests.java index d94a0f7..543ee54 100644 --- a/app/src/test/java/lightcontainer/storage/RepositoryTests.java +++ b/app/src/test/java/lightcontainer/storage/RepositoryTests.java @@ -35,14 +35,13 @@ public class RepositoryTests { appConfig.setMulticastPort(15502); appConfig.setNetworkInterface("My network interface"); appConfig.setTls(false); - Map files = new HashMap<>(); Set storage = new HashSet<>(); storage.add("StorBackEnd1"); File file1 = new File("File1", 15, "8d8d8d8d", storage); - files.put(file1.getName(), file1); appData.setAppConfig(appConfig); appData.addUser("User1", "Password", "djdjjdj"); JsonAdapter jsonAdapter = new JsonAdapter(appData); + appData.addFileFor(file1, "User1"); //WHEN Repository calls save method String filePath = "src/test/resources/test.json"; Repository repository = new Repository(filePath, jsonAdapter);