-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
272 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 13 additions & 3 deletions
16
cli/src/test/java/com/devonfw/tools/ide/tool/androidstudio/AndroidStudioUrlUpdaterMock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
package com.devonfw.tools.ide.tool.androidstudio; | ||
|
||
import com.devonfw.tools.ide.url.updater.JsonUrlUpdater; | ||
import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo; | ||
|
||
/** | ||
* {@link JsonUrlUpdater} test mock for Android Studio. | ||
*/ | ||
public class AndroidStudioUrlUpdaterMock extends AndroidStudioUrlUpdater { | ||
|
||
/** The base URL used for WireMock */ | ||
private final static String TEST_BASE_URL = "http://localhost:8080"; | ||
WireMockRuntimeInfo wmRuntimeInfo; | ||
|
||
/** | ||
* The constructor | ||
* | ||
* @param wmRuntimeInfo the {@link WireMockRuntimeInfo} holding the http url and port of the wiremock server. | ||
*/ | ||
public AndroidStudioUrlUpdaterMock(WireMockRuntimeInfo wmRuntimeInfo) { | ||
super(); | ||
this.wmRuntimeInfo = wmRuntimeInfo; | ||
} | ||
|
||
@Override | ||
protected String getVersionBaseUrl() { | ||
|
||
return TEST_BASE_URL; | ||
return wmRuntimeInfo.getHttpBaseUrl(); | ||
} | ||
} |
Oops, something went wrong.