/** Provides a collision free PK () not returned before in the current test. */ protected K nextPk() { for (int i = 0; i < 100000; i++) { K pk = createRandomPk(); if (usedPks.add(pk)) { return pk; } } throw new IllegalStateException("Could not find a new PK"); }
/** Provides a collision free PK () not returned before in the current test. */ protected K nextPk() { for (int i = 0; i < 100000; i++) { K pk = createRandomPk(); if (usedPks.add(pk)) { return pk; } } throw new IllegalStateException("Could not find a new PK"); }