OpenedValueStoreImpl implements OpenedValueStore<AuthT, OpenT> { @Override public void pushOpenedValues(List<AuthT> newSharesWithMacs, List<OpenT> newOpenedValues) { sharesWithMacs.addAll(newSharesWithMacs); openValues.addAll(newOpenedValues); } OpenedValueStoreImpl(); @Override void pushOpenedValues(List<AuthT> newSharesWithMacs, List<OpenT> newOpenedValues); @Override void pushOpenedValue(AuthT newShareWithMac, OpenT newOpenedValue); @Override Pair<List<AuthT>, List<OpenT>> popValues(); @Override boolean hasPendingValues(); @Override boolean exceedsThreshold(int threshold);  }
@Test public void testPushOpenedValues() { OpenedValueStore<BigInteger, BigInteger> store = new OpenedValueStoreImpl<>(); store.pushOpenedValue(authenticated, open); Assert.assertTrue("Store expected to have pending values", store.hasPendingValues()); Assert.assertTrue(store.exceedsThreshold(0)); Assert.assertFalse(store.exceedsThreshold(1)); }