use of com.google.copybara.testing.OptionsBuilder in project copybara by google.
the class MainArgumentsTest method setup.
@Before
public void setup() {
mainArguments = new MainArguments(new String[] { "one", "two" });
fs = Jimfs.newFileSystem();
options = new OptionsBuilder();
}
use of com.google.copybara.testing.OptionsBuilder in project copybara by google.
the class ReadConfigFromChangeWorkflowTest method setup.
@Before
public void setup() {
options = new OptionsBuilder();
origin = new DummyOrigin();
destination = new RecordsProcessCallDestination();
options.testingOptions.origin = origin;
options.testingOptions.destination = destination;
skylark = new SkylarkParser(ImmutableSet.of(Core.class, Authoring.Module.class, TestingModule.class));
}
use of com.google.copybara.testing.OptionsBuilder in project copybara by google.
the class SkylarkParserTest method setup.
@Before
public void setup() {
OptionsBuilder options = new OptionsBuilder();
console = new TestingConsole();
options.setConsole(console);
parser = new SkylarkTestExecutor(options, Mock.class, MockLabelsAwareModule.class);
}
use of com.google.copybara.testing.OptionsBuilder in project copybara by google.
the class FolderOriginTest method setup.
@Before
public void setup() throws IOException, RepoException {
workdir = Files.createTempDirectory("workdir");
options = new OptionsBuilder().setWorkdirToRealTempDir().setHomeDir(StandardSystemProperty.USER_HOME.value());
skylark = new SkylarkTestExecutor(options, FolderModule.class);
}
use of com.google.copybara.testing.OptionsBuilder in project copybara by google.
the class RemoveTest method setup.
@Before
public void setup() throws IOException {
FileSystem fs = Jimfs.newFileSystem();
checkoutDir = fs.getPath("/test-checkoutDir");
Files.createDirectories(checkoutDir);
console = new TestingConsole();
options = new OptionsBuilder().setConsole(console);
skylark = new SkylarkTestExecutor(options, Core.class, CopyOrMove.class);
}
Aggregations