Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldSetDefaultAdmin() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldSetDefaultAdmin()
        {
            InsertUser("jane", false);
            _tool.execute(_homeDir.toPath(), _confDir.toPath(), SET_ADMIN, "jane");
            AssertAdminIniFile("jane");

            verify(@out).stdOutLine("default admin user set to 'jane'");
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldSetPassword() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldSetPassword()
        {
            _tool.execute(_homeDir.toPath(), _confDir.toPath(), SET_PASSWORD, "abc");
            AssertAuthIniFile("abc");

            verify(@out).stdOutLine("Changed password for user 'neo4j'.");
        }