Browse Source

Pull request #6322: REPORT-61361 新插件管理11.0适配

Merge in DESIGN/design from ~LANLAN/design:final/11.0 to final/11.0

* commit '5622c886cc7f1e324cd14d7079cbc9485cc08fc9':
  REPORT-61361 新插件管理11.0适配
new-design
Lanlan 3 years ago
parent
commit
8233164fbc
  1. 2
      designer-base/src/main/java/com/fr/design/upm/UpmUtils.java
  2. 2
      designer-base/src/test/java/com/fr/design/upm/UpmUtilsTest.java

2
designer-base/src/main/java/com/fr/design/upm/UpmUtils.java

@ -37,7 +37,7 @@ public class UpmUtils {
}
private static String fetchLatestVersion() {
String version = CloudCenter.getInstance().acquireUrlByKind("upm.script.version");
String version = CloudCenter.getInstance().acquireUrlByKind("upm.script.version.v11");
if (StringUtils.isBlank(version)) {
version = "1.0";
}

2
designer-base/src/test/java/com/fr/design/upm/UpmUtilsTest.java

@ -34,7 +34,7 @@ public class UpmUtilsTest {
EasyMock.expect(ServerPreferenceConfig.getInstance()).andReturn(serverPreferenceConfig).anyTimes();
CloudCenter cloudCenter = EasyMock.mock(CloudCenter.class);
EasyMock.expect(cloudCenter.acquireUrlByKind("upm.script.version")).andReturn("2.0").anyTimes();
EasyMock.expect(cloudCenter.acquireUrlByKind("upm.script.version.v11")).andReturn("2.0").anyTimes();
PowerMock.mockStatic(CloudCenter.class);
EasyMock.expect(CloudCenter.getInstance()).andReturn(cloudCenter).anyTimes();

Loading…
Cancel
Save