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

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

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

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

            inOrder.verifyNoMoreInteractions();

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