File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/java/com/atomgraph/linkeddatahub/server/filter/request Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,10 @@ public void testRegisteredAppAllowedWhenProxyDisabled() throws IOException
124124 when (mediaTypes .getReadable (Model .class )).thenReturn (List .of ());
125125 when (mediaTypes .getReadable (ResultSet .class )).thenReturn (List .of ());
126126 when (externalClient .target (ADMIN_URI )).thenReturn (webTarget );
127- when (webTarget .request (any (MediaType [].class ))).thenReturn (invocationBuilder );
127+ when (webTarget .request ()).thenReturn (invocationBuilder );
128+ when (invocationBuilder .accept (any (MediaType [].class ))).thenReturn (invocationBuilder );
128129 when (invocationBuilder .header (anyString (), any ())).thenReturn (invocationBuilder );
129- when (invocationBuilder .get ( )).thenReturn (clientResponse );
130+ when (invocationBuilder .method ( anyString () )).thenReturn (clientResponse );
130131
131132 // null media type triggers the early-return path in getResponse(Response)
132133 when (clientResponse .getHeaders ()).thenReturn (new MultivaluedHashMap <>());
You can’t perform that action at this time.
0 commit comments