예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGet204WhenRemovingAValidRelationship() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldGet204WhenRemovingAValidRelationship()
        {
            long relationshipId = _helper.createRelationship("KNOWS");

            JaxRsResponse response = SendDeleteRequest(new URI(_functionalTestHelper.relationshipUri(relationshipId)));

            assertEquals(204, response.Status);
            response.Close();
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGetThomasAndersonLovesTrinityRelationship()
        public virtual void ShouldGetThomasAndersonLovesTrinityRelationship()
        {
            JaxRsResponse response = RestRequest.Req().get(_functionalTestHelper.relationshipUri(_thomasAndersonLovesTrinity), MediaType.TEXT_HTML_TYPE);

            assertEquals(Status.OK.StatusCode, response.Status);
            string entity = response.Entity;

            assertTrue(entity.Contains("strength"));
            assertTrue(entity.Contains("100"));
            assertTrue(entity.Contains("LOVES"));
            AssertValidHtml(entity);
            response.Close();
        }