Skip to content

Commit 91fb686

Browse files
namedgraphclaude
andcommitted
Fix ProxyRequestFilterTest mock stubs after generic proxy refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1f392bf commit 91fb686

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/atomgraph/linkeddatahub/server/filter/request/ProxyRequestFilterTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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<>());

0 commit comments

Comments
 (0)