use of com.forgerock.opendj.ldap.controls.TransactionIdControl in project OpenAM by OpenRock.
the class LDAPRequestsTest method shouldAddTransactionIdControlToRequests.
@Test(dataProvider = "supportedRequests")
public void shouldAddTransactionIdControlToRequests(Request request) throws Exception {
assertThat(request.containsControl(TransactionIdControl.OID)).isTrue();
TransactionIdControl control = request.getControl(TransactionIdControl.DECODER, new DecodeOptions());
assertThat(control.getTransactionId()).startsWith(TRANSACTION_ID.getValue());
}
Aggregations