@Test public void shouldReturnCorrectQandP() { GqSetup setup = factory.generateSetup(); assertEquals(BigInteger.valueOf(11), setup.q); assertEquals(BigInteger.valueOf(23), setup.p); }
public GqSetup generateSetup() { return new GqSetup(q, p, createGenerator()); }
GqSetupFactory { public GqSetup generateSetup() { return new GqSetup(q, p, createGenerator()); } }
GqSetupFactory { public GqSetup generateSetup() { return new GqSetup(q, p, createGenerator()); } private  GqSetupFactory(BigInteger q, BigInteger p); }
GqSetupFactory { public GqSetup generateSetup() { return new GqSetup(q, p, createGenerator()); } private  GqSetupFactory(BigInteger q, BigInteger p); static GqSetupFactory factory(int q, int p); static GqSetupFactory factory(BigInteger q, BigInteger p); GqSetup generateSetup(); }
GqSetupFactory { public GqSetup generateSetup() { return new GqSetup(q, p, createGenerator()); } private  GqSetupFactory(BigInteger q, BigInteger p); static GqSetupFactory factory(int q, int p); static GqSetupFactory factory(BigInteger q, BigInteger p); GqSetup generateSetup();  }