Skip to content

Commit ab70f42

Browse files
committed
Adjust further tests
1 parent f6972ba commit ab70f42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudplatform/connectivity-oauth/src/test/java/com/sap/cloud/sdk/cloudplatform/connectivity/OAuth2ServiceBindingDestinationLoaderTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void testProxiedDestination()
351351
{
352352
final URI proxyUrl = URI.create("http://proxyUrl:1234");
353353
final DefaultHttpDestination baseDestination =
354-
DefaultHttpDestination.builder(baseUrl).proxyType(ProxyType.ON_PREMISE).build();
354+
DefaultHttpDestination.builder(baseUrl).proxyType(ProxyType.ON_PREMISE).buildInternal();
355355

356356
final DestinationHeaderProvider headerProviderMock = mock(DestinationHeaderProvider.class);
357357
when(headerProviderMock.getHeaders(any())).thenReturn(Collections.emptyList());
@@ -459,7 +459,7 @@ void testSkipProxyTokenRetrieval()
459459
{
460460
final URI proxyUrl = URI.create("http://proxyUrl:1234");
461461
final DefaultHttpDestination baseDestination =
462-
DefaultHttpDestination.builder(baseUrl).proxyType(ProxyType.ON_PREMISE).build();
462+
DefaultHttpDestination.builder(baseUrl).proxyType(ProxyType.ON_PREMISE).buildInternal();
463463
final ServiceBindingDestinationOptions options =
464464
ServiceBindingDestinationOptions
465465
.forService(EMPTY_BINDING)

0 commit comments

Comments
 (0)