//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void Setup()
        {
            InstallSleepProcedure(_server.graphDatabaseService());

            _address    = _server.lookupDefaultConnector();
            _connection = new SocketConnection();
            _util       = new TransportTestUtil(new Neo4jPackV1());
        }
Beispiel #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void setUp() throws java.io.IOException, java.security.GeneralSecurityException, org.bouncycastle.operator.OperatorCreationException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public static void SetUp()
        {
            _certFactory = new PkiUtils();
            _keyFile     = File.createTempFile("key", "pem");
            _certFile    = File.createTempFile("key", "pem");
            _keyFile.deleteOnExit();
            _certFile.deleteOnExit();

            // make sure files are not there
            _keyFile.delete();
            _certFile.delete();

            _certFactory.createSelfSignedCertificate(_certFile, _keyFile, "my.domain");

            _util = new TransportTestUtil(new Neo4jPackV1());
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup()
        public virtual void Setup()
        {
            this._client  = Cf.newInstance();
            this._address = Server.lookupDefaultConnector();
            this._util    = new TransportTestUtil(new Neo4jPackV1());
        }
Beispiel #4
0
 public TypeSafeMatcherAnonymousInnerClass(TransportTestUtil outerInstance, Matcher <ResponseMessage>[] messages)
 {
     this.outerInstance = outerInstance;
     this._messages     = messages;
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void Setup()
        {
            _address    = Server.lookupDefaultConnector();
            _connection = System.Activator.CreateInstance(ConnectionClass);
            _util       = new TransportTestUtil(new Neo4jPackV1());
        }