From 7e12fb089109d5e3c404cfcf9f9e4091d9c482b1 Mon Sep 17 00:00:00 2001 From: Mikkel Wienberg Madsen Date: Tue, 2 Apr 2024 15:41:08 +0200 Subject: [PATCH] Change Map.of to new HashMap --- .../fresco/tools/mascot/TestMascotResourcePoolImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/mascot/src/test/java/dk/alexandra/fresco/tools/mascot/TestMascotResourcePoolImpl.java b/tools/mascot/src/test/java/dk/alexandra/fresco/tools/mascot/TestMascotResourcePoolImpl.java index 08c241c5c..63ee3dc7a 100644 --- a/tools/mascot/src/test/java/dk/alexandra/fresco/tools/mascot/TestMascotResourcePoolImpl.java +++ b/tools/mascot/src/test/java/dk/alexandra/fresco/tools/mascot/TestMascotResourcePoolImpl.java @@ -3,16 +3,17 @@ import dk.alexandra.fresco.framework.builder.numeric.field.BigIntegerFieldDefinition; import dk.alexandra.fresco.framework.util.AesCtrDrbg; import dk.alexandra.fresco.framework.util.ModulusFinder; -import java.util.Map; import org.junit.Test; +import java.util.HashMap; + public class TestMascotResourcePoolImpl { @Test(expected = IllegalArgumentException.class) public void testCreateRotForSelf() { MascotResourcePool resourcePool = new MascotResourcePoolImpl(1, 1, 1, - new AesCtrDrbg(new byte[32]), Map.of(), new MascotSecurityParameters(), + new AesCtrDrbg(new byte[32]), new HashMap<>(), new MascotSecurityParameters(), new BigIntegerFieldDefinition(ModulusFinder.findSuitableModulus(128))); resourcePool.createRot(1, null); }