@Test public void shouldReturnDifferentGenerators() { GqSetup first = factory.generateSetup(); GqSetup second = factory.generateSetup(); assertFalse(first.generator.equals(second.generator)); }
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();  }