Loading tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/AppInfoTest.java +9 −8 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ public class AppInfoTest { @Test public void testAllFieldsValidV1() throws Exception { System.out.println("starting testAllFieldsValidV1."); var unused = new AppInfoFactory() .createFromOdElement( TestUtils.getElementFromResource( Loading Loading @@ -133,7 +134,7 @@ public class AppInfoTest { TestUtils.getElementFromResource( Paths.get(APP_INFO_OD_PATH, ALL_FIELDS_VALID_V1_FILE_NAME)); TestUtils.removeOdChildEleWithName(appInfoEle, optField); new AppInfoFactory().createFromOdElement(appInfoEle, 1L); var unused = new AppInfoFactory().createFromOdElement(appInfoEle, 1L); } } Loading Loading @@ -202,7 +203,7 @@ public class AppInfoTest { Paths.get(APP_INFO_HR_PATH, ALL_FIELDS_VALID_FILE_NAME)); ele.removeAttribute(optField); AppInfo appInfo = new AppInfoFactory().createFromHrElement(ele, DEFAULT_VERSION); appInfo.toOdDomElement(TestUtils.document()); var unused = appInfo.toOdDomElement(TestUtils.document()); } for (String optField : OPTIONAL_FIELD_NAMES_OD) { Loading @@ -211,7 +212,7 @@ public class AppInfoTest { Paths.get(APP_INFO_OD_PATH, ALL_FIELDS_VALID_FILE_NAME)); TestUtils.removeOdChildEleWithName(ele, optField); AppInfo appInfo = new AppInfoFactory().createFromOdElement(ele, DEFAULT_VERSION); appInfo.toHrDomElement(TestUtils.document()); var unused = appInfo.toHrDomElement(TestUtils.document()); } } Loading tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/DeveloperInfoTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ public class DeveloperInfoTest { developerInfoEle.removeAttribute(optField); DeveloperInfo developerInfo = new DeveloperInfoFactory().createFromHrElement(developerInfoEle); developerInfo.toOdDomElement(TestUtils.document()); var unused = developerInfo.toOdDomElement(TestUtils.document()); } for (String optField : OPTIONAL_FIELD_NAMES_OD) { Loading @@ -109,7 +109,7 @@ public class DeveloperInfoTest { TestUtils.removeOdChildEleWithName(developerInfoEle, optField); DeveloperInfo developerInfo = new DeveloperInfoFactory().createFromOdElement(developerInfoEle); developerInfo.toHrDomElement(TestUtils.document()); var unused = developerInfo.toHrDomElement(TestUtils.document()); } } Loading tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/SecurityLabelsTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ public class SecurityLabelsTest { Paths.get(SECURITY_LABELS_HR_PATH, ALL_FIELDS_VALID_FILE_NAME)); ele.removeAttribute(optField); SecurityLabels securityLabels = new SecurityLabelsFactory().createFromHrElement(ele); securityLabels.toOdDomElement(TestUtils.document()); var unused = securityLabels.toOdDomElement(TestUtils.document()); } for (String optField : OPTIONAL_FIELD_NAMES_OD) { var ele = Loading @@ -72,7 +72,7 @@ public class SecurityLabelsTest { Paths.get(SECURITY_LABELS_OD_PATH, ALL_FIELDS_VALID_FILE_NAME)); TestUtils.removeOdChildEleWithName(ele, optField); SecurityLabels securityLabels = new SecurityLabelsFactory().createFromOdElement(ele); securityLabels.toHrDomElement(TestUtils.document()); var unused = securityLabels.toHrDomElement(TestUtils.document()); } } Loading Loading
tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/AppInfoTest.java +9 −8 Original line number Diff line number Diff line Loading @@ -86,6 +86,7 @@ public class AppInfoTest { @Test public void testAllFieldsValidV1() throws Exception { System.out.println("starting testAllFieldsValidV1."); var unused = new AppInfoFactory() .createFromOdElement( TestUtils.getElementFromResource( Loading Loading @@ -133,7 +134,7 @@ public class AppInfoTest { TestUtils.getElementFromResource( Paths.get(APP_INFO_OD_PATH, ALL_FIELDS_VALID_V1_FILE_NAME)); TestUtils.removeOdChildEleWithName(appInfoEle, optField); new AppInfoFactory().createFromOdElement(appInfoEle, 1L); var unused = new AppInfoFactory().createFromOdElement(appInfoEle, 1L); } } Loading Loading @@ -202,7 +203,7 @@ public class AppInfoTest { Paths.get(APP_INFO_HR_PATH, ALL_FIELDS_VALID_FILE_NAME)); ele.removeAttribute(optField); AppInfo appInfo = new AppInfoFactory().createFromHrElement(ele, DEFAULT_VERSION); appInfo.toOdDomElement(TestUtils.document()); var unused = appInfo.toOdDomElement(TestUtils.document()); } for (String optField : OPTIONAL_FIELD_NAMES_OD) { Loading @@ -211,7 +212,7 @@ public class AppInfoTest { Paths.get(APP_INFO_OD_PATH, ALL_FIELDS_VALID_FILE_NAME)); TestUtils.removeOdChildEleWithName(ele, optField); AppInfo appInfo = new AppInfoFactory().createFromOdElement(ele, DEFAULT_VERSION); appInfo.toHrDomElement(TestUtils.document()); var unused = appInfo.toHrDomElement(TestUtils.document()); } } Loading
tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/DeveloperInfoTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ public class DeveloperInfoTest { developerInfoEle.removeAttribute(optField); DeveloperInfo developerInfo = new DeveloperInfoFactory().createFromHrElement(developerInfoEle); developerInfo.toOdDomElement(TestUtils.document()); var unused = developerInfo.toOdDomElement(TestUtils.document()); } for (String optField : OPTIONAL_FIELD_NAMES_OD) { Loading @@ -109,7 +109,7 @@ public class DeveloperInfoTest { TestUtils.removeOdChildEleWithName(developerInfoEle, optField); DeveloperInfo developerInfo = new DeveloperInfoFactory().createFromOdElement(developerInfoEle); developerInfo.toHrDomElement(TestUtils.document()); var unused = developerInfo.toHrDomElement(TestUtils.document()); } } Loading
tools/app_metadata_bundles/src/test/java/com/android/asllib/marshallable/SecurityLabelsTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ public class SecurityLabelsTest { Paths.get(SECURITY_LABELS_HR_PATH, ALL_FIELDS_VALID_FILE_NAME)); ele.removeAttribute(optField); SecurityLabels securityLabels = new SecurityLabelsFactory().createFromHrElement(ele); securityLabels.toOdDomElement(TestUtils.document()); var unused = securityLabels.toOdDomElement(TestUtils.document()); } for (String optField : OPTIONAL_FIELD_NAMES_OD) { var ele = Loading @@ -72,7 +72,7 @@ public class SecurityLabelsTest { Paths.get(SECURITY_LABELS_OD_PATH, ALL_FIELDS_VALID_FILE_NAME)); TestUtils.removeOdChildEleWithName(ele, optField); SecurityLabels securityLabels = new SecurityLabelsFactory().createFromOdElement(ele); securityLabels.toHrDomElement(TestUtils.document()); var unused = securityLabels.toHrDomElement(TestUtils.document()); } } Loading