private static void InitBuilder() { if (_builder == null) { _builder = CommunityServerBuilder.server(); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldBeAbleToExplicitlySetConsolesToEnabled() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldBeAbleToExplicitlySetConsolesToEnabled() { Server = CommunityServerBuilder.server().withProperty(ServerSettings.console_module_engines.name(), "").usingDataDir(Folder.directory(Name.MethodName).AbsolutePath).build(); Server.start(); assertThat(Exec("ls", "shell").Status, @is(400)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shellConsoleShouldBeEnabledByDefault() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShellConsoleShouldBeEnabledByDefault() { Server = CommunityServerBuilder.server().usingDataDir(Folder.directory(Name.MethodName).AbsolutePath).build(); Server.start(); assertThat(Exec("ls", "shell").Status, @is(200)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @BeforeClass public static void setupServer() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public static void SetupServer() { Server = CommunityServerBuilder.server().usingDataDir(StaticFolder.Root.AbsolutePath).build(); suppressAll().call((Callable <Void>)() => { Server.start(); return(null); }); FunctionalTestHelper = new FunctionalTestHelper(Server); }