예제 #1
0
 public void testItRaisesWhenReservingMoreRingBitsThanTotalBitCount() {
   try {
     fingerprinter.reserveRingBits(1025);
     fail();
   } catch (IllegalStateException e) {
   }
 }
예제 #2
0
  public void testItDoesntChangeFingerprintLengthAfterReservingRingBits() {
    fingerprinter.reserveRingBits(24);

    assertEquals(1024, fingerprinter.getFingerprintLength());
  }