Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldCreateALabelOnMasterAndApplyItLocally()
        public virtual void ShouldCreateALabelOnMasterAndApplyItLocally()
        {
            // GIVEN
            int responseValue = _response.response();

            // WHEN
            int result = creator.createToken(_label);

            // THEN
            assertEquals(responseValue, result);
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expected = org.neo4j.graphdb.TransientTransactionFailureException.class) public void mustTranslateComExceptionsToTransientTransactionFailures()
        public virtual void MustTranslateComExceptionsToTransientTransactionFailures()
        {
            when(_fixture.callMasterMethod(_master, _requestContext, _name)).thenThrow(new ComException());
            _tokenCreator.createToken(_name);
        }