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

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

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

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

            inOrder.verifyNoMoreInteractions();

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