use of com.palantir.atlasdb.timelock.api.SingleNodeUpdateResponse in project atlasdb by palantir.
the class DisabledNamespacesTest method disableFailsIfAlreadyDisabledWithDifferentId.
@Test
public void disableFailsIfAlreadyDisabledWithDifferentId() {
SingleNodeUpdateResponse firstResponse = disabledNamespaces.disable(disableNamespacesRequest(FIRST));
assertThat(firstResponse).isEqualTo(successfulResponse());
SingleNodeUpdateResponse secondResponse = disabledNamespaces.disable(DisableNamespacesRequest.of(ImmutableSet.of(FIRST), "otherLockId"));
assertThat(secondResponse).isEqualTo(unsuccessfulResponse());
}
Aggregations