Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testVisitNeoStoreCommand() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void TestVisitNeoStoreCommand()
        {
            // Make sure it just calls through to visit
            Command.NeoStoreCommand cmd = mock(typeof(Command.NeoStoreCommand));
            when(cmd.Handle(any(typeof(CommandVisitor)))).thenCallRealMethod();

            // WHEN
            bool result = _facade.visitNeoStoreCommand(cmd);

            // THEN
            InOrder inOrder = inOrder(_txApplier1, _txApplier2, _txApplier3);

            inOrder.verify(_txApplier1).visitNeoStoreCommand(cmd);
            inOrder.verify(_txApplier2).visitNeoStoreCommand(cmd);
            inOrder.verify(_txApplier3).visitNeoStoreCommand(cmd);

            inOrder.verifyNoMoreInteractions();

            assertFalse(result);
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visitNeoStoreCommand(org.neo4j.kernel.impl.transaction.command.Command.NeoStoreCommand command) throws java.io.IOException
        public override bool VisitNeoStoreCommand(Command.NeoStoreCommand command)
        {
            return(Visit(command));
        }