Metadata API
以下に紹介されているテストクラスは
This is a dummy test class to obtain 100% coverage for the generated WSDL2Apex code, it is not a funcitonal test class
と書かれていますが実際にテストを実行すると89%でした。
以下はカバー率を上げるための追加メソッドです。
このテストクラスに追加して下さい。(2020/10/30時点で99%)
@IsTest
private static void AddedcoverGeneratedCodeTypes()
{
Test.startTest();
new MetadataService.LightningBoltFeatures();
new MetadataService.MacroSettings();
new MetadataService.ExtendedErrorDetails();
new MetadataService.RecommendationDefinition();
new MetadataService.WaveXmdDimension();
new MetadataService.NetworkBranding();
new MetadataService.UserCriteria();
new MetadataService.LightningBoltImages();
new MetadataService.RecommendationAudience();
new MetadataService.WaveXmd();
new MetadataService.LightningExperienceTheme();
new MetadataService.ProfileCategoryGroupVisibility();
new MetadataService.CleanDataService();
new MetadataService.FlowCategoryItems();
new MetadataService.AppPreferences();
new MetadataService.SocialCustomerServiceSettings();
new MetadataService.EmbeddedServiceQuickAction();
new MetadataService.FlowScreenFieldTranslation();
new MetadataService.FlowDefinitionTranslation();
new MetadataService.StrategyNode();
new MetadataService.Index();
new MetadataService.WaveXmdDate();
new MetadataService.PublicGroups();
new MetadataService.NavigationSubMenu();
new MetadataService.EmbeddedServiceFieldService();
new MetadataService.BrandingSet();
new MetadataService.Users();
new MetadataService.FieldSetTranslation();
new MetadataService.CommunityThemeDefinition();
new MetadataService.CommunityTemplateBundleInfo();
new MetadataService.UiFormulaCriterion();
new MetadataService.LightningComponentBundle();
new MetadataService.FlowScreenFieldInputParameter();
new MetadataService.Orchestration();
new MetadataService.ScheduledRecommendation();
new MetadataService.InsightType();
new MetadataService.QueueMembers();
new MetadataService.FileUploadAndDownloadSecuritySettings();
new MetadataService.LightningBoltItems();
new MetadataService.ChatterExtension();
new MetadataService.WaveXmdOrganization();
new MetadataService.NetworkPageOverride();
new MetadataService.KnowledgeWorkOrderField();
new MetadataService.CampaignInfluenceModel();
new MetadataService.OrchestrationContextEvent();
new MetadataService.FlowScreenTranslation();
new MetadataService.CommunityRoles();
new MetadataService.RoleAndSubordinatesInternal();
new MetadataService.DashboardFlexTableComponentProperties();
new MetadataService.IntegrationHubSettings();
new MetadataService.CommunityThemeSetting();
new MetadataService.OrchestrationContext();
new MetadataService.KnowledgeWorkOrderLineItemField();
new MetadataService.CspTrustedSite();
new MetadataService.FlowCategory();
new MetadataService.LightningBolt();
new MetadataService.CaseSubjectParticle();
new MetadataService.WaveXmdDimensionSalesforceAction();
new MetadataService.Roles();
new MetadataService.FileTypeDispositionAssignmentBean();
new MetadataService.AppWorkspaceConfig();
new MetadataService.ScheduledRecommendationDetail();
new MetadataService.UiFormulaRule();
new MetadataService.WaveXmdRecordDisplayLookup();
new MetadataService.IntegrationHubSettingsType();
new MetadataService.WaveXmdDimensionMember();
new MetadataService.LiveMessageSettings();
new MetadataService.ForecastingDisplayedFamilySettings();
new MetadataService.EmailServicesFunction();
new MetadataService.IndexField();
new MetadataService.FlowChoiceTranslation();
new MetadataService.WaveXmdDimensionCustomAction();
new MetadataService.FlexiPageTemplateInstance();
new MetadataService.AppComponentList();
new MetadataService.KnowledgeWorkOrderLineItemFieldsSettings();
new MetadataService.ServiceCloudConsoleConfig();
new MetadataService.BrandingSetProperty();
new MetadataService.KnowledgeWorkOrderFieldsSettings();
new MetadataService.FlowTranslation();
new MetadataService.WaveRecipe();
new MetadataService.EmailServicesAddress();
new MetadataService.ProfileSessionSetting();
new MetadataService.DashboardComponentColumn();
new MetadataService.FlowStage();
new MetadataService.CustomNotificationType();
new MetadataService.AssistantRecommendationType();
new MetadataService.RecommendationStrategy();
new MetadataService.AppActionOverride();
new MetadataService.RoleAndSubordinates();
new MetadataService.EmbeddedServiceBranding();
new MetadataService.ProfilePasswordPolicy();
new MetadataService.RecommendationAudienceDetail();
new MetadataService.FieldServiceSettings();
new MetadataService.EclairMap();
new MetadataService.AppProfileActionOverride();
new MetadataService.FlowScreenFieldOutputParameter();
new MetadataService.CommunityTemplateDefinition();
new MetadataService.RecommendationDefinitionDetail();
new MetadataService.FlowInputValidationRuleTranslation();
new MetadataService.CleanRule();
new MetadataService.EclairGeoData();
new MetadataService.CommunityCustomThemeLayoutType();
new MetadataService.CommunityTemplatePageSetting();
new MetadataService.WaveXmdMeasure();
new MetadataService.PermissionSetGroup();
new MetadataService.TopicsForObjects();
new MetadataService.FlowChoiceUserInputTranslation();
new MetadataService.DashboardComponentSortInfo();
Test.stopTest();
}