use of com.alibaba.graphscope.groot.frontend.IngestorWriteClient in project GraphScope by alibaba.
the class CoordinatorRpcTest method testDdlWriter.
@Test
void testDdlWriter() {
RoleClients<IngestorWriteClient> clients = mock(RoleClients.class);
IngestorWriteClient ingestorWriteClient = mock(IngestorWriteClient.class);
when(clients.getClient(0)).thenReturn(ingestorWriteClient);
DdlWriter ddlWriter = new DdlWriter(clients);
ddlWriter.writeOperations("test_req", null);
verify(ingestorWriteClient).writeIngestor(eq("test_req"), eq(0), any());
}
Aggregations