use of org.neo4j.causalclustering.load_balancing.Endpoint in project neo4j by neo4j.
the class ResultFormatV1Test method shouldSerializeToAndFromRecordFormatWithNoEntries.
@Test
public void shouldSerializeToAndFromRecordFormatWithNoEntries() throws Exception {
// given
List<Endpoint> writers = emptyList();
List<Endpoint> readers = emptyList();
List<Endpoint> routers = emptyList();
long ttlSeconds = 0;
LoadBalancingResult original = new LoadBalancingResult(routers, writers, readers, ttlSeconds * 1000);
// when
Object[] record = ResultFormatV1.build(original);
// then
LoadBalancingResult parsed = ResultFormatV1.parse(record);
assertEquals(original, parsed);
}
Aggregations