Browse Source

REPORT-61361 新插件管理11.0适配

final/11.0
Lanlan 3 years ago
parent
commit
5622c886cc
  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