Search in sources :

Example 1 with ApprovalsProvider

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);
}
Also used : ApprovalsProvider(com.google.copybara.approval.ApprovalsProvider) Test(org.junit.Test)

Aggregations

ApprovalsProvider (com.google.copybara.approval.ApprovalsProvider)1 Test (org.junit.Test)1