From 136d77a8aab41e6239ffa68ce1cfdbd234799679 Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Fri, 16 Mar 2012 04:51:55 +0000 Subject: [PATCH] Fix YKGenerator test - methods no longer static --- core/java/test/net/i2p/crypto/ElGamalTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/java/test/net/i2p/crypto/ElGamalTest.java b/core/java/test/net/i2p/crypto/ElGamalTest.java index 7789f99d9f..c917219adf 100644 --- a/core/java/test/net/i2p/crypto/ElGamalTest.java +++ b/core/java/test/net/i2p/crypto/ElGamalTest.java @@ -372,8 +372,10 @@ public class ElGamalTest extends TestCase{ public void testYKGen(){ RandomSource.getInstance().nextBoolean(); + I2PAppContext context = new I2PAppContext(); + YKGenerator ykgen = new YKGenerator(context); for (int i = 0; i < 5; i++) { - YKGenerator.getNextYK(); + ykgen.getNextYK(); } } -} \ No newline at end of file +} -- GitLab