コード例 #1
0
 private static void InitBuilder()
 {
     if (_builder == null)
     {
         _builder = CommunityServerBuilder.server();
     }
 }
コード例 #2
0
//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));
            }
コード例 #3
0
//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));
            }
コード例 #4
0
//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);
            }