Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldLookUpTheIndexByLabelIdAndPropertyKeyId() throws org.neo4j.internal.kernel.api.exceptions.ProcedureException, org.neo4j.internal.kernel.api.exceptions.schema.IndexNotFoundKernelException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldLookUpTheIndexByLabelIdAndPropertyKeyId()
        {
            when(_tokenRead.nodeLabel(anyString())).thenReturn(_descriptor.LabelId);
            when(_tokenRead.propertyKey(anyString())).thenReturn(_descriptor.PropertyId);
            when(_schemaRead.index(anyInt(), any())).thenReturn(_anyIndex);
            when(_schemaRead.indexGetState(any(typeof(IndexReference)))).thenReturn(ONLINE);

            _procedure.awaitIndexByPattern(":Person(name)", TIMEOUT, _timeUnit);

            verify(_schemaRead).index(_descriptor.LabelId, _descriptor.PropertyId);
        }