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 errorHandledForNonExistingAdditionalConfigFile() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ErrorHandledForNonExistingAdditionalConfigFile()
        {
            // given
            Path additionalConf = _homeDir.resolve("neo4j.conf");

            // and
            Expected.expect(typeof(CommandFailed));
            Expected.expectCause(hasCause(any(typeof(IOException))));

            // expect
            OnlineBackupContextFactory handler = new OnlineBackupContextFactory(_homeDir, _configDir);

            handler.CreateContext(RequiredAnd("--additional-config=" + additionalConf));
        }