}
public void testSR13061()
throws DatabaseException {
FileSummaryLN ln = new FileSummaryLN(new FileSummary());
/*
* All of these tests failed before checking that the byte array must
* be eight bytes for integer keys.
*/
assertTrue(ln.hasStringKey(stringKey(0)));
assertTrue(ln.hasStringKey(stringKey(1)));
assertTrue(ln.hasStringKey(stringKey(12)));
assertTrue(ln.hasStringKey(stringKey(123)));
assertTrue(ln.hasStringKey(stringKey(1234)));
assertTrue(ln.hasStringKey(stringKey(12345)));
assertTrue(ln.hasStringKey(stringKey(123456)));
assertTrue(ln.hasStringKey(stringKey(1234567)));
assertTrue(ln.hasStringKey(stringKey(123456789)));
assertTrue(ln.hasStringKey(stringKey(1234567890)));
/*
* These tests failed before checking that the first byte of the
* sequence number (in an eight byte key) must not be '0' to '9' for
* integer keys.
*/
assertTrue(ln.hasStringKey(stringKey(12345678)));
assertTrue(ln.hasStringKey(stringKey(12340000)));
/* These tests are just for good measure. */
assertTrue(!ln.hasStringKey(intKey(0, 1)));
assertTrue(!ln.hasStringKey(intKey(1, 1)));
assertTrue(!ln.hasStringKey(intKey(12, 1)));
assertTrue(!ln.hasStringKey(intKey(123, 1)));
assertTrue(!ln.hasStringKey(intKey(1234, 1)));
assertTrue(!ln.hasStringKey(intKey(12345, 1)));
assertTrue(!ln.hasStringKey(intKey(123456, 1)));
assertTrue(!ln.hasStringKey(intKey(1234567, 1)));
assertTrue(!ln.hasStringKey(intKey(12345678, 1)));
assertTrue(!ln.hasStringKey(intKey(123456789, 1)));
assertTrue(!ln.hasStringKey(intKey(1234567890, 1)));
}