Refactored the code

fix/subscription_table
Rajitha Kumara 8 months ago
parent bd021ff835
commit 4957741173

@ -691,6 +691,13 @@ public class ApplicationManagementUtil {
applicationReleaseDTO.setMetaData(gson.toJson(parsedMetadataList)); 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) private static String[] extractNameSegments(ApplicationReleaseDTO applicationReleaseDTO, String installerPath)
throws ApplicationManagementException { throws ApplicationManagementException {
String []installerPathSegments = installerPath.split("/"); String []installerPathSegments = installerPath.split("/");

@ -174,7 +174,6 @@ public class ApplicationManagementTest extends BaseTestCase {
releaseWrapper.setArtifactLink(apkTransferLink.getDirectTransferLink() + "/sample.apk"); releaseWrapper.setArtifactLink(apkTransferLink.getDirectTransferLink() + "/sample.apk");
releaseWrapper.setRemoteStatus(false); releaseWrapper.setRemoteStatus(false);
entAppReleaseWrappers.add(releaseWrapper); entAppReleaseWrappers.add(releaseWrapper);
applicationWrapper.setEntAppReleaseWrappers(entAppReleaseWrappers); applicationWrapper.setEntAppReleaseWrappers(entAppReleaseWrappers);

Loading…
Cancel
Save