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 shouldMakeJAXRSClassesAvailableViaHTTP() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldMakeJAXRSClassesAvailableViaHTTP()
        {
            CommunityServerBuilder builder = CommunityServerBuilder.server();

            _server = ServerHelper.createNonPersistentServer(builder);
            FunctionalTestHelper functionalTestHelper = new FunctionalTestHelper(_server);

            JaxRsResponse response = (new RestRequest()).get(functionalTestHelper.ManagementUri());

            assertEquals(200, response.Status);
            response.Close();
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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 java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public static void SetupServer()
        {
            @out    = new MemoryStream();
            _server = ServerHelper.createNonPersistentServer(FormattedLogProvider.toOutputStream(@out));
        }
Ejemplo n.º 4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeClass public static void startServer() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public static void StartServer()
        {
            _server = ServerHelper.createNonPersistentServer();
        }