@Override public String toString() { return String.format( "[%s@%d::criticality=%s, syncState=%s, entryUuid=%s, cookie=%s]", getClass().getName(), hashCode(), getCriticality(), syncState, entryUuid, LdapUtils.base64Encode(cookie)); }
@Override public String toString() { return String.format( "[%s@%d::criticality=%s, syncState=%s, entryUuid=%s, cookie=%s]", getClass().getName(), hashCode(), getCriticality(), syncState, entryUuid, LdapUtils.base64Encode(cookie)); }
@Override public String toString() { return String.format( "[%s@%d::criticality=%s, syncState=%s, entryUuid=%s, cookie=%s]", getClass().getName(), hashCode(), getCriticality(), syncState, entryUuid, LdapUtils.base64Encode(cookie)); }
@Override public int hashCode() { return LdapUtils.computeHashCode(HASH_CODE_SEED, getOID(), getCriticality(), syncState, entryUuid, cookie); }
@Override public int hashCode() { return LdapUtils.computeHashCode(HASH_CODE_SEED, getOID(), getCriticality(), syncState, entryUuid, cookie); }
@Override public int hashCode() { return LdapUtils.computeHashCode(HASH_CODE_SEED, getOID(), getCriticality(), syncState, entryUuid, cookie); }
/** * @param berValue to encode. * @param expected sync state control to test. * * @throws Exception On test failure. */ @Test(groups = {"control"}, dataProvider = "response") public void decode(final byte[] berValue, final SyncStateControl expected) throws Exception { final SyncStateControl actual = new SyncStateControl(expected.getCriticality()); actual.decode(berValue); Assert.assertEquals(actual, expected); } }