/// <summary> /// /db/data/index/relationship should be a resource with no content /// </summary> /// <exception cref="Exception"> </exception> //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRespondWithRelationshipIndexes() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldRespondWithRelationshipIndexes() { JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.relationshipIndexUri()); AssertResponseContainsNoIndexesOtherThanAutoIndexes(response); response.Close(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldGetRelationshipIndexRoot() public virtual void ShouldGetRelationshipIndexRoot() { JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.relationshipIndexUri(), MediaType.TEXT_HTML_TYPE); assertEquals(Status.OK.StatusCode, response.Status); AssertValidHtml(response.Entity); response.Close(); }
/// <summary> /// Create an auto index for relationships with specific configuration. /// </summary> //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldCreateARelationshipAutoIndexWithGivenFullTextConfiguration() public virtual void ShouldCreateARelationshipAutoIndexWithGivenFullTextConfiguration() { string responseBody = Gen.get().expectedStatus(201).payload("{\"name\":\"relationship_auto_index\", \"config\":{\"type\":\"fulltext\"," + "\"provider\":\"lucene\"}}").post(_functionalTestHelper.relationshipIndexUri()).entity(); assertThat(responseBody, containsString("\"type\" : \"fulltext\"")); }