Skip to content

Commit

Permalink
Bring back old methods as @Deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobEdding committed Apr 22, 2024
1 parent c0d357e commit fff6a12
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/testFixtures/java/com/bakdata/kserve/KServeMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,28 @@ public abstract class KServeMock {

abstract MockResponse getModelNotFoundResponse(String modelName);

/**
* Get the base endpoint of the mock.
*
* @return A base endpoint
* @deprecated This method is deprecated in favor of {@link #getServiceBaseUrl()}.
*/
@Deprecated
public String getBaseEndpoint() {
return ":" + this.mockWebServer.getPort();
}

/**
* Get the service name of the mock.
*
* @return A service name
* @deprecated This method is deprecated in favor of {@link #getServiceBaseUrl()}.
*/
@Deprecated
public String getServiceName() {
return this.mockWebServer.getHostName();
}

public URL getServiceBaseUrl() {
try {
return new URL(
Expand Down

0 comments on commit fff6a12

Please sign in to comment.