Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testVisitIndexAddNodeCommand() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void TestVisitIndexAddNodeCommand()
        {
            IndexCommand.AddNodeCommand cmd = mock(typeof(IndexCommand.AddNodeCommand));
            when(cmd.Handle(any(typeof(CommandVisitor)))).thenCallRealMethod();

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

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

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

            inOrder.verifyNoMoreInteractions();

            assertFalse(result);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visitIndexAddNodeCommand(org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand command) throws java.io.IOException
        public override bool VisitIndexAddNodeCommand(IndexCommand.AddNodeCommand command)
        {
            return(Visit(command));
        }