Search in sources :

Example 1 with IngestorWriteClient

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());
}
Also used : IngestorWriteClient(com.alibaba.graphscope.groot.frontend.IngestorWriteClient) Test(org.junit.jupiter.api.Test)

Aggregations

IngestorWriteClient (com.alibaba.graphscope.groot.frontend.IngestorWriteClient)1 Test (org.junit.jupiter.api.Test)1