use of com.android.tools.build.bundletool.model.exceptions.InvalidCommandException in project bundletool by google.
the class BuildApksCommandTest method systemApkOptions_nonSystemMode_throws.
@Test
public void systemApkOptions_nonSystemMode_throws() throws Exception {
InvalidCommandException flagsException = assertThrows(InvalidCommandException.class, () -> BuildApksCommand.fromFlags(new FlagParser().parse("--bundle=" + bundlePath, "--output=" + outputFilePath, "--mode=" + DEFAULT, "--system-apk-options=" + UNCOMPRESSED_NATIVE_LIBRARIES), fakeAdbServer));
assertThat(flagsException).hasMessageThat().contains("'system-apk-options' flag is available in system mode only.");
}
Aggregations