Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void assertEventualOverview(org.hamcrest.Matcher<java.util.List<MemberInfo>> expected, org.neo4j.causalclustering.discovery.ClusterMember<? extends org.neo4j.kernel.impl.factory.GraphDatabaseFacade> member, String role) throws org.neo4j.internal.kernel.api.exceptions.KernelException, InterruptedException
        private void AssertEventualOverview <T1>(Matcher <IList <MemberInfo> > expected, ClusterMember <T1> member, string role) where T1 : Org.Neo4j.Kernel.impl.factory.GraphDatabaseFacade
        {
//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
//JAVA TO C# CONVERTER TODO TASK: Most Java stream collectors are not converted by Java to C# Converter:
            System.Func <IList <MemberInfo>, string> printableMemberInfos = memberInfos => memberInfos.Select(MemberInfo::toString).collect(Collectors.joining(", "));

            string message = string.Format("should have overview from {0} {1}, but view was ", role, member.ServerId());

            assertEventually(memberInfos => message + printableMemberInfos(memberInfos), () => ClusterOverview(member.Database()), expected, 180, SECONDS);
        }