Skip to content

Commit

Permalink
Change Map.of to new HashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
quackzar committed Apr 2, 2024
1 parent 83ed851 commit 7e12fb0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7e12fb0

Please sign in to comment.