@@ -40,7 +40,7 @@ void tearDown() throws IOException {
4040 @ Test
4141 void shouldCreateClientWithHttpConfigOnly () {
4242 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
43- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
43+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
4444 OpenCodeClientConfig config = new OpenCodeClientConfig ();
4545 OpenCodeHttpClient httpClient = new OpenCodeHttpClient (httpConfig , new ObjectMapper (), null );
4646 OpenCodeClient client = new OpenCodeClient (config , httpClient , null , null );
@@ -66,7 +66,7 @@ void shouldCreateClientWithCliConfigOnly() {
6666 @ Test
6767 void shouldCreateClientWithBothSubsystems () {
6868 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
69- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
69+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
7070 OpenCodeClientConfig config = new OpenCodeClientConfig ();
7171 OpenCodeHttpClient httpClient = new OpenCodeHttpClient (httpConfig , new ObjectMapper (), null );
7272 OpenCodeCliExecutor executor = new OpenCodeCliExecutor (config .getCli ());
@@ -122,7 +122,7 @@ void shouldDisableCliWhenConfigDisabled() {
122122 @ Test
123123 void shouldDelegateHealthToHttpClient () {
124124 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
125- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
125+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
126126 server .enqueue (new MockResponse ()
127127 .setHeader ("Content-Type" , "application/json" )
128128 .setBody ("{\" healthy\" :true,\" version\" :\" 1.0.0\" }" ));
@@ -140,7 +140,7 @@ void shouldDelegateHealthToHttpClient() {
140140 @ Test
141141 void shouldDelegateListSessions () {
142142 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
143- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
143+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
144144 server .enqueue (new MockResponse ()
145145 .setHeader ("Content-Type" , "application/json" )
146146 .setBody ("[{\" id\" :\" sess-1\" ,\" title\" :\" test\" }]" ));
@@ -158,7 +158,7 @@ void shouldDelegateListSessions() {
158158 @ Test
159159 void shouldDelegateListAgents () {
160160 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
161- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
161+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
162162 server .enqueue (new MockResponse ()
163163 .setHeader ("Content-Type" , "application/json" )
164164 .setBody ("[{\" name\" :\" coder\" }]" ));
@@ -176,7 +176,7 @@ void shouldDelegateListAgents() {
176176 @ Test
177177 void shouldDelegateGetConfig () {
178178 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
179- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
179+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
180180 server .enqueue (new MockResponse ()
181181 .setHeader ("Content-Type" , "application/json" )
182182 .setBody ("{\" theme\" :\" dark\" }" ));
@@ -194,7 +194,7 @@ void shouldDelegateGetConfig() {
194194 @ Test
195195 void shouldDelegateAbort () {
196196 OpenCodeHttpClientConfig httpConfig = new OpenCodeHttpClientConfig ();
197- httpConfig .setServerUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
197+ httpConfig .setBaseUrl (server .url ("/" ).toString ().replaceAll ("/$" , "" ));
198198 server .enqueue (new MockResponse ()
199199 .setHeader ("Content-Type" , "application/json" )
200200 .setBody ("{}" ));
0 commit comments