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

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

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

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

            inOrder.verifyNoMoreInteractions();

            assertFalse(result);
        }
Пример #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public boolean visitSchemaRuleCommand(org.neo4j.kernel.impl.transaction.command.Command.SchemaRuleCommand command) throws java.io.IOException
        public override bool VisitSchemaRuleCommand(Command.SchemaRuleCommand command)
        {
            return(Visit(command));
        }