Package org.apache.hadoop.hbase.http
Class TestHttpServerLifecycle
java.lang.Object
org.apache.hadoop.hbase.http.HttpServerFunctionalTest
org.apache.hadoop.hbase.http.TestHttpServerLifecycle
-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
TEST_BUILD_WEBAPPS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertAlive(org.apache.hadoop.hbase.http.HttpServer server) Check that a server is alive by probing theHttpServer.isAlive()method and the text of its toString() descriptionprivate voidassertNotLive(org.apache.hadoop.hbase.http.HttpServer server) private voidassertToStringContains(org.apache.hadoop.hbase.http.HttpServer server, String text) Assert that the result ofHttpServer.toString()contains the specific textvoidTest that the server is alive once startedvoidTest that the server is alive once startedvoidTest that the server is not alive once stoppedvoidTest that the server is not alive once stoppedvoidvoidTest that the server is alive once startedMethods inherited from class org.apache.hadoop.hbase.http.HttpServerFunctionalTest
access, createAndStartTestServer, createServer, createServer, createServer, createServer, createServer, createTestServer, createTestServer, createTestServer, createTestServer, createTestServerWithSecurity, createTestServerWithSecurityAndAcl, deleteRecursively, getFreePort, getServerURL, prepareTestWebapp, readOutput, stop
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestHttpServerLifecycle
public TestHttpServerLifecycle()
-
-
Method Details
-
assertAlive
Check that a server is alive by probing theHttpServer.isAlive()method and the text of its toString() description- Parameters:
server- server
-
assertNotLive
-
testCreatedServerIsNotAlive
Test that the server is alive once started- Throws:
Throwable- on failure
-
testStopUnstartedServer
- Throws:
Throwable
-
testStartedServerIsAlive
Test that the server is alive once started- Throws:
Throwable- on failure
-
assertToStringContains
Assert that the result ofHttpServer.toString()contains the specific text- Parameters:
server- server to examinetext- text to search for
-
testStoppedServerIsNotAlive
Test that the server is not alive once stopped- Throws:
Throwable- on failure
-
testStoppingTwiceServerIsAllowed
Test that the server is not alive once stopped- Throws:
Throwable- on failure
-
testWepAppContextAfterServerStop
Test that the server is alive once started- Throws:
Throwable
-