use of com.android.tools.build.bundletool.model.exceptions.CommandExecutionException in project bundletool by google.
the class MergingUtilsTest method mergeShardTargetings_nonAbiNonDensityNonLanguageTargeting_throws.
@Test
public void mergeShardTargetings_nonAbiNonDensityNonLanguageTargeting_throws() {
ApkTargeting targeting = apkMinSdkTargeting(21);
CommandExecutionException exception = assertThrows(CommandExecutionException.class, () -> MergingUtils.mergeShardTargetings(targeting, apkLanguageTargeting("en")));
assertThat(exception).hasMessageThat().contains("Expecting only ABI, screen density, language and texture compression format" + " targeting");
}
Aggregations