@@ -59,10 +59,8 @@ void testValidationError_InvalidType() throws Exception {
5959 fga .writeAuthorizationModel (authModelRequest ).get ();
6060 fga .setAuthorizationModelId (authModelResponse .getAuthorizationModelId ());
6161
62- ClientCheckRequest request = new ClientCheckRequest ()
63- .user ("user:123" )
64- .relation ("viewer" )
65- ._object ("invalid_type:doc1" );
62+ ClientCheckRequest request =
63+ new ClientCheckRequest ().user ("user:123" ).relation ("viewer" )._object ("invalid_type:doc1" );
6664
6765 CompletableFuture <ClientCheckResponse > future = fga .check (request );
6866 ExecutionException exception = assertThrows (ExecutionException .class , future ::get );
@@ -168,10 +166,8 @@ void testErrorMetadataExtensibility() throws Exception {
168166 fga .writeAuthorizationModel (authModelRequest ).get ();
169167 fga .setAuthorizationModelId (authModelResponse .getAuthorizationModelId ());
170168
171- ClientCheckRequest request = new ClientCheckRequest ()
172- .user ("user:123" )
173- .relation ("viewer" )
174- ._object ("invalid_type:doc1" );
169+ ClientCheckRequest request =
170+ new ClientCheckRequest ().user ("user:123" ).relation ("viewer" )._object ("invalid_type:doc1" );
175171
176172 CompletableFuture <ClientCheckResponse > future = fga .check (request );
177173
@@ -198,10 +194,8 @@ void testErrorMessageVisibilityInExecutionException() throws Exception {
198194 fga .writeAuthorizationModel (authModelRequest ).get ();
199195 fga .setAuthorizationModelId (authModelResponse .getAuthorizationModelId ());
200196
201- ClientCheckRequest request = new ClientCheckRequest ()
202- .user ("user:123" )
203- .relation ("viewer" )
204- ._object ("invalid_type:doc1" );
197+ ClientCheckRequest request =
198+ new ClientCheckRequest ().user ("user:123" ).relation ("viewer" )._object ("invalid_type:doc1" );
205199
206200 CompletableFuture <ClientCheckResponse > future = fga .check (request );
207201 ExecutionException exception = assertThrows (ExecutionException .class , future ::get );
@@ -223,10 +217,8 @@ void testCompleteErrorContext() throws Exception {
223217 fga .writeAuthorizationModel (authModelRequest ).get ();
224218 fga .setAuthorizationModelId (authModelResponse .getAuthorizationModelId ());
225219
226- ClientCheckRequest request = new ClientCheckRequest ()
227- .user ("user:123" )
228- .relation ("viewer" )
229- ._object ("invalid_type:doc1" );
220+ ClientCheckRequest request =
221+ new ClientCheckRequest ().user ("user:123" ).relation ("viewer" )._object ("invalid_type:doc1" );
230222
231223 CompletableFuture <ClientCheckResponse > future = fga .check (request );
232224 ExecutionException exception = assertThrows (ExecutionException .class , future ::get );
@@ -256,10 +248,8 @@ void testWriteValidationError_InvalidTupleKey() throws Exception {
256248 fga .setAuthorizationModelId (authModelResponse .getAuthorizationModelId ());
257249
258250 ClientWriteRequest writeRequest = new ClientWriteRequest ()
259- .writes (List .of (new ClientTupleKey ()
260- .user ("user:123" )
261- .relation ("reader" )
262- ._object ("invalid_type:doc1" )));
251+ .writes (List .of (
252+ new ClientTupleKey ().user ("user:123" ).relation ("reader" )._object ("invalid_type:doc1" )));
263253
264254 CompletableFuture <ClientWriteResponse > future = fga .write (writeRequest );
265255 ExecutionException exception = assertThrows (ExecutionException .class , future ::get );
@@ -273,4 +263,3 @@ void testWriteValidationError_InvalidTupleKey() throws Exception {
273263 assertNotNull (error .getApiErrorMessage ());
274264 }
275265}
276-
0 commit comments