//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(expected = IllegalArgumentException.class) public void exceptionThrownWhenNotRegistered() public virtual void ExceptionThrownWhenNotRegistered() { // Given IndexSamplingManagerBean.StoreAccess storeAccess = new IndexSamplingManagerBean.StoreAccess(); // When storeAccess.TriggerIndexSampling(EXISTING_LABEL, EXISTING_PROPERTY, false); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test(expected = IllegalArgumentException.class) public void exceptionThrownWhenMissingProperty() public virtual void ExceptionThrownWhenMissingProperty() { // Given IndexSamplingManagerBean.StoreAccess storeAccess = new IndexSamplingManagerBean.StoreAccess(); storeAccess.Registered(_dataSource); // When storeAccess.TriggerIndexSampling(EXISTING_LABEL, NON_EXISTING_PROPERTY, false); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void samplingTriggeredWhenIdsArePresent() throws org.neo4j.internal.kernel.api.exceptions.schema.IndexNotFoundKernelException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void SamplingTriggeredWhenIdsArePresent() { // Given IndexSamplingManagerBean.StoreAccess storeAccess = new IndexSamplingManagerBean.StoreAccess(); storeAccess.Registered(_dataSource); // When storeAccess.TriggerIndexSampling(EXISTING_LABEL, EXISTING_PROPERTY, false); // Then verify(_indexingService, times(1)).triggerIndexSampling(SchemaDescriptorFactory.forLabel(LABEL_ID, PROPERTY_ID), IndexSamplingMode.TRIGGER_REBUILD_UPDATED); }