Skip to content

Commit e75586f

Browse files
committed
feat: use disabled annotations instead of comments
1 parent c227731 commit e75586f

File tree

3 files changed

+434
-436
lines changed

3 files changed

+434
-436
lines changed

src/main/java/dev/openfga/sdk/api/client/OpenFgaClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ public CompletableFuture<ClientListObjectsResponse> listObjects(
11311131
* @return CompletableFuture<Void> that completes when streaming finishes
11321132
* @throws FgaInvalidParameterException When the Store ID is null, empty, or whitespace, or consumer is null
11331133
*/
1134-
private CompletableFuture<Void> streamedListObjects(
1134+
CompletableFuture<Void> streamedListObjects(
11351135
ClientListObjectsRequest request, Consumer<StreamedListObjectsResponse> consumer)
11361136
throws FgaInvalidParameterException {
11371137
if (consumer == null) {
@@ -1171,7 +1171,7 @@ private CompletableFuture<Void> streamedListObjects(
11711171
* @return CompletableFuture<Void> that completes when streaming finishes
11721172
* @throws FgaInvalidParameterException When the Store ID is null, empty, or whitespace, or consumer is null
11731173
*/
1174-
private CompletableFuture<Void> streamedListObjects(
1174+
CompletableFuture<Void> streamedListObjects(
11751175
ClientListObjectsRequest request,
11761176
ClientStreamedListObjectsOptions options,
11771177
Consumer<StreamedListObjectsResponse> consumer)
@@ -1211,7 +1211,7 @@ private CompletableFuture<Void> streamedListObjects(
12111211
* @return CompletableFuture<Void> that completes when streaming finishes or exceptionally on error
12121212
* @throws FgaInvalidParameterException When the Store ID is null, empty, or whitespace, or consumer is null
12131213
*/
1214-
private CompletableFuture<Void> streamedListObjects(
1214+
CompletableFuture<Void> streamedListObjects(
12151215
ClientListObjectsRequest request,
12161216
ClientStreamedListObjectsOptions options,
12171217
Consumer<StreamedListObjectsResponse> consumer,

src/test-integration/java/dev/openfga/sdk/api/client/OpenFgaClientIntegrationTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
import java.nio.file.Files;
1212
import java.nio.file.Paths;
1313
import java.util.List;
14+
import java.util.concurrent.CompletableFuture;
1415
import org.junit.jupiter.api.BeforeAll;
1516
import org.junit.jupiter.api.BeforeEach;
17+
import org.junit.jupiter.api.Disabled;
1618
import org.junit.jupiter.api.Test;
1719
import org.junit.jupiter.api.TestInstance;
1820
import org.junit.jupiter.api.TestInstance.Lifecycle;
@@ -372,10 +374,8 @@ private String writeAuthModel(String storeId) throws Exception {
372374
return response.getAuthorizationModelId();
373375
}
374376

375-
// NOTE: This test is temporarily commented out as the streamedListObjects API is not yet available for public use.
376-
// It will be enabled in a future release.
377-
/*
378377
@Test
378+
@Disabled("streamedListObjects is private for now")
379379
public void streamedListObjects() throws Exception {
380380
// Given - Create a single store for all streaming tests
381381
String storeId = createStore(thisTestName());
@@ -466,7 +466,6 @@ public void streamedListObjects() throws Exception {
466466
assertEquals(20, chainTestObjects.size());
467467
assertTrue(chainedOperationExecuted.get());
468468
}
469-
*/
470469

471470
/** Get the name of the test that invokes this function. Returned in the form: "$class.$fn" */
472471
private String thisTestName() {

0 commit comments

Comments
 (0)