Search in sources :

Example 1 with CustomMultiArgv

use of com.google.devtools.build.lib.analysis.actions.CustomCommandLine.CustomMultiArgv in project bazel by bazelbuild.

the class CustomCommandLineTest method testCustomMultiArgs.

@Test
public void testCustomMultiArgs() {
    CustomCommandLine cl = CustomCommandLine.builder().add(new CustomMultiArgv() {

        @Override
        public ImmutableList<String> argv() {
            return ImmutableList.of("--arg1", "--arg2");
        }
    }).build();
    assertEquals(ImmutableList.of("--arg1", "--arg2"), cl.arguments());
}
Also used : CustomCommandLine(com.google.devtools.build.lib.analysis.actions.CustomCommandLine) CustomMultiArgv(com.google.devtools.build.lib.analysis.actions.CustomCommandLine.CustomMultiArgv) Test(org.junit.Test)

Aggregations

CustomCommandLine (com.google.devtools.build.lib.analysis.actions.CustomCommandLine)1 CustomMultiArgv (com.google.devtools.build.lib.analysis.actions.CustomCommandLine.CustomMultiArgv)1 Test (org.junit.Test)1