Avoid annotation-driven parsing of device capabilities in DeviceController

This commit is contained in:
Jonathan Klabunde Tomer authored and Jon Chambers committed 2024-10-31 10:58:38 -04:00
1 parent bf741df38e
commit 63021e0ca3
4 files changed
+24 -25

No files matched your search

@@ -785,10 +785,11 @@ class DeviceControllerTest {
.request()
.header("Authorization", AuthHelper.getAuthHeader(AuthHelper.VALID_UUID, AuthHelper.VALID_PASSWORD))
.header(HttpHeaders.USER_AGENT, "Signal-Android/5.42.8675309 Android/30")
.put(Entity.entity(Set.of(), MediaType.APPLICATION_JSON_TYPE))) {
.put(Entity.json("{\"deleteSync\": true, \"notARealDeviceCapability\": true}"))) {
assertThat(response.getStatus()).isEqualTo(204);
assertThat(response.hasEntity()).isFalse();
verify(AuthHelper.VALID_DEVICE).setCapabilities(Set.of(DeviceCapability.DELETE_SYNC));
}
}