use of com.google.copybara.util.console.testing.TestingConsole in project copybara by google.
the class ConsoleEventMonitorTest method setUp.
@Before
public void setUp() throws Exception {
console = new TestingConsole();
eventMonitor = new ConsoleEventMonitor(console, EventMonitor.EMPTY_MONITOR);
}
use of com.google.copybara.util.console.testing.TestingConsole in project copybara by google.
the class CopyOrMoveTest method testDotDot.
@Test
public void testDotDot() {
for (String t : ImmutableList.of("move", "copy")) {
options.setConsole(new TestingConsole());
skylark.evalFails("core." + t + "(after = '../blablabla', before = 'other')\n", "path has unexpected [.] or [.][.] components.*[.][.]/blablabla");
}
}
use of com.google.copybara.util.console.testing.TestingConsole in project copybara by google.
the class CopyOrMoveTest 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);
}
use of com.google.copybara.util.console.testing.TestingConsole in project copybara by google.
the class CopyOrMoveTest method testAbsoluteBefore.
@Test
public void testAbsoluteBefore() {
for (String t : ImmutableList.of("move", "copy")) {
options.setConsole(new TestingConsole());
skylark.evalFails("core." + t + "(before = '/blablabla', after = 'other')\n", "path must be relative.*/blablabla");
}
}
use of com.google.copybara.util.console.testing.TestingConsole in project copybara by google.
the class SequenceTest method setup.
@Before
public void setup() throws IOException {
FileSystem fs = Jimfs.newFileSystem();
checkoutDir = fs.getPath("/test-checkoutDir");
Files.createDirectories(checkoutDir);
options = new OptionsBuilder();
console = new TestingConsole();
options.setConsole(console);
}
Aggregations