|
|
@ -34,7 +34,7 @@ public class UpmUtilsTest { |
|
|
|
EasyMock.expect(ServerPreferenceConfig.getInstance()).andReturn(serverPreferenceConfig).anyTimes(); |
|
|
|
EasyMock.expect(ServerPreferenceConfig.getInstance()).andReturn(serverPreferenceConfig).anyTimes(); |
|
|
|
|
|
|
|
|
|
|
|
CloudCenter cloudCenter = EasyMock.mock(CloudCenter.class); |
|
|
|
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); |
|
|
|
PowerMock.mockStatic(CloudCenter.class); |
|
|
|
EasyMock.expect(CloudCenter.getInstance()).andReturn(cloudCenter).anyTimes(); |
|
|
|
EasyMock.expect(CloudCenter.getInstance()).andReturn(cloudCenter).anyTimes(); |
|
|
|
|
|
|
|
|
|
|
|