@Ignore ("Hangs on occasion; see HBASE-14430") @Test public void testStopUnstartedServer() throws Throwable { HttpServer server = createTestServer(); stop(server); }
/** * Test that the server is not alive once stopped * * @throws Throwable on failure */ @Ignore ("Hangs on occasion; see HBASE-14430") @Test public void testStoppingTwiceServerIsAllowed() throws Throwable { HttpServer server = createAndStartTestServer(); assertAlive(server); stop(server); assertNotLive(server); stop(server); assertNotLive(server); }
/** * Test that the server is not alive once stopped * * @throws Throwable on failure */ @Ignore ("Hangs on occasion; see HBASE-14430") @Test public void testStoppedServerIsNotAlive() throws Throwable { HttpServer server = createAndStartTestServer(); assertAlive(server); stop(server); assertNotLive(server); }
/** * Test that the server is alive once started * * @throws Throwable on failure */ @Ignore ("Hangs on occasion; see HBASE-14430") @Test public void testStartedServerIsAlive() throws Throwable { HttpServer server = null; server = createTestServer(); assertNotLive(server); server.start(); assertAlive(server); stop(server); }
/** * Test that the server is alive once started * * @throws Throwable * on failure */ @Ignore ("Hangs on occasion; see HBASE-14430") @Test public void testWepAppContextAfterServerStop() throws Throwable { HttpServer server = null; String key = "test.attribute.key"; String value = "test.attribute.value"; server = createTestServer(); assertNotLive(server); server.start(); server.setAttribute(key, value); assertAlive(server); assertEquals(value, server.getAttribute(key)); stop(server); assertNull("Server context should have cleared", server.getAttribute(key)); } }