mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactored the code
This commit is contained in:
parent
bd021ff835
commit
4957741173
@ -691,6 +691,13 @@ public class ApplicationManagementUtil {
|
||||
applicationReleaseDTO.setMetaData(gson.toJson(parsedMetadataList));
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract name segments from installer path
|
||||
* @param applicationReleaseDTO {@link ApplicationReleaseDTO}
|
||||
* @param installerPath Installer path
|
||||
* @return Extracted file name segments
|
||||
* @throws ApplicationManagementException Throws when error encountered while extracting name segments from installer path
|
||||
*/
|
||||
private static String[] extractNameSegments(ApplicationReleaseDTO applicationReleaseDTO, String installerPath)
|
||||
throws ApplicationManagementException {
|
||||
String []installerPathSegments = installerPath.split("/");
|
||||
|
||||
@ -174,7 +174,6 @@ public class ApplicationManagementTest extends BaseTestCase {
|
||||
releaseWrapper.setArtifactLink(apkTransferLink.getDirectTransferLink() + "/sample.apk");
|
||||
releaseWrapper.setRemoteStatus(false);
|
||||
|
||||
|
||||
entAppReleaseWrappers.add(releaseWrapper);
|
||||
applicationWrapper.setEntAppReleaseWrappers(entAppReleaseWrappers);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user