Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void allocateServer() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public static void AllocateServer()
        {
            System.setProperty("org.neo4j.useInsecureCertificateGeneration", "true");
            suppressAll().call((Callable <Void>)() =>
            {
                ServerHolder.SetServerBuilderProperty(GraphDatabaseSettings.cypher_hints_error.name(), "true");
                ServerHolder.SetServerBuilderProperty(GraphDatabaseSettings.transaction_timeout.name(), "300s");
                ServerHolder.SetServerBuilderProperty(ServerSettings.transaction_idle_timeout.name(), "300s");
                _server = ServerHolder.Allocate();
                ServerHelper.cleanTheDatabase(_server);
                return(null);
            });
        }
Exemple #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void cleanTheDatabase()
        public virtual void CleanTheDatabase()
        {
            ServerHelper.cleanTheDatabase(_server);
        }
Exemple #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setupServer() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void SetupServer()
        {
            _logProvider = new AssertableLogProvider();
            _server      = ServerHelper.createNonPersistentServer(_logProvider);
            ServerHelper.cleanTheDatabase(_server);
        }
Exemple #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setup() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void Setup()
        {
            ServerHelper.cleanTheDatabase(_readOnlyServer);
            _readOnlyServer = ServerHelper.createReadOnlyServer(Dir.storeDir());
            _http           = HTTP.withBaseUri(_readOnlyServer.baseUri());
        }