Search in sources :

Example 1 with DummyEndpoint

use of com.google.copybara.testing.DummyEndpoint in project copybara by google.

the class FeedbackTest method setup.

@Before
public void setup() throws Exception {
    workdir = Files.createTempDirectory("workdir");
    Files.createDirectories(workdir);
    console = new TestingConsole();
    options = new OptionsBuilder();
    dummyEndpoint = new DummyEndpoint();
    options.setConsole(console);
    options.testingOptions.feedbackEndpoint = dummyEndpoint;
    skylark = new SkylarkParser(ImmutableSet.of(Core.class, TestingModule.class));
}
Also used : DummyEndpoint(com.google.copybara.testing.DummyEndpoint) SkylarkParser(com.google.copybara.config.SkylarkParser) TestingConsole(com.google.copybara.util.console.testing.TestingConsole) OptionsBuilder(com.google.copybara.testing.OptionsBuilder) Before(org.junit.Before)

Aggregations

SkylarkParser (com.google.copybara.config.SkylarkParser)1 DummyEndpoint (com.google.copybara.testing.DummyEndpoint)1 OptionsBuilder (com.google.copybara.testing.OptionsBuilder)1 TestingConsole (com.google.copybara.util.console.testing.TestingConsole)1 Before (org.junit.Before)1