public class TestHttpServerLifecycle extends HttpServerFunctionalTest
| Modifier and Type | Field and Description | 
|---|---|
static HBaseClassTestRule | 
CLASS_RULE  | 
TEST_BUILD_WEBAPPS| Constructor and Description | 
|---|
TestHttpServerLifecycle()  | 
| Modifier and Type | Method and Description | 
|---|---|
private void | 
assertAlive(org.apache.hadoop.hbase.http.HttpServer server)
Check that a server is alive by probing the  
HttpServer.isAlive() method
 and the text of its toString() description | 
private void | 
assertNotLive(org.apache.hadoop.hbase.http.HttpServer server)  | 
private void | 
assertToStringContains(org.apache.hadoop.hbase.http.HttpServer server,
                      String text)
Assert that the result of  
HttpServer.toString() contains the specific text | 
void | 
testCreatedServerIsNotAlive()
Test that the server is alive once started 
 | 
void | 
testStartedServerIsAlive()
Test that the server is alive once started 
 | 
void | 
testStoppedServerIsNotAlive()
Test that the server is not alive once stopped 
 | 
void | 
testStoppingTwiceServerIsAllowed()
Test that the server is not alive once stopped 
 | 
void | 
testStopUnstartedServer()  | 
void | 
testWepAppContextAfterServerStop()
Test that the server is alive once started 
 | 
createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stopassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failpublic static final HBaseClassTestRule CLASS_RULE
public TestHttpServerLifecycle()
private void assertAlive(org.apache.hadoop.hbase.http.HttpServer server)
HttpServer.isAlive() method
 and the text of its toString() descriptionserver - serverprivate void assertNotLive(org.apache.hadoop.hbase.http.HttpServer server)
public void testCreatedServerIsNotAlive() throws Throwable
Throwable - on failurepublic void testStopUnstartedServer() throws Throwable
Throwablepublic void testStartedServerIsAlive() throws Throwable
Throwable - on failureprivate void assertToStringContains(org.apache.hadoop.hbase.http.HttpServer server, String text)
HttpServer.toString() contains the specific textserver - server to examinetext - text to search forpublic void testStoppedServerIsNotAlive() throws Throwable
Throwable - on failurepublic void testStoppingTwiceServerIsAllowed() throws Throwable
Throwable - on failurepublic void testWepAppContextAfterServerStop() throws Throwable
Throwable - on failureCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.