use of com.google.copybara.approval.ApprovalsProvider in project copybara by google.
the class GitOriginTest method testApprovalsProvider.
@Test
public void testApprovalsProvider() throws Exception {
ApprovalsProvider provider = mock(ApprovalsProvider.class);
options.gitOrigin.approvalsProvider = provider;
origin = skylark.eval("result", "result = git.origin(\n" + " url = 'https://my-server.org/copybara',\n" + " ref = 'main',\n" + ")");
assertThat(origin.getApprovalsProvider()).isEqualTo(provider);
}
Aggregations