示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldLogUpstreamIssueMessage()
        public virtual void ShouldLogUpstreamIssueMessage()
        {
            InMemoryStoreStreamProvider       clientStoreFileStream             = new InMemoryStoreStreamProvider();
            CatchupAddressResolutionException catchupAddressResolutionException = new CatchupAddressResolutionException(new MemberId(System.Guid.randomUUID()));

            try
            {
                _subject.copyStoreFiles(new CatchupAddressProviderAnonymousInnerClass2(this, catchupAddressResolutionException)
//JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter:
                                        , _serverHandler.StoreId, clientStoreFileStream, Once::new, _targetLocation);
                fail();
            }
            catch (StoreCopyFailedException)
            {
                _assertableLogProvider.rawMessageMatcher().assertContains(Matchers.allOf(Matchers.containsString("Unable to resolve address for '%s'. %s")));

                // assertableLogProvider.assertLogStringContains(catchupAddressResolutionException.getMessage() );
            }
        }
示例#2
0
 public CatchupAddressProviderAnonymousInnerClass2(StoreCopyClientIT outerInstance, CatchupAddressResolutionException catchupAddressResolutionException)
 {
     this.outerInstance = outerInstance;
     this._catchupAddressResolutionException = catchupAddressResolutionException;
 }