Package org.vx68k.bitbucket.webhook.test
Class BitbucketWebhookServletTest
- java.lang.Object
-
- org.vx68k.bitbucket.webhook.test.BitbucketWebhookServletTest
-
public final class BitbucketWebhookServletTest extends Object
Unit tests forBitbucketWebhookServlet.- Author:
- Kaz Nishimura
-
-
Constructor Summary
Constructors Constructor Description BitbucketWebhookServletTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()Prepares theServletConfigobject for testing.voidtearDown()Releases theServletConfigobject.voidtestGet()Tests responses forGETrequests.voidtestHead()Tests responses forHEADrequests.voidtestLifecycle()
-
-
-
Method Detail
-
setUp
public void setUp()
Prepares theServletConfigobject for testing.
-
tearDown
public void tearDown()
Releases theServletConfigobject.
-
testLifecycle
public void testLifecycle() throws ServletException- Throws:
ServletException- if a servlet error occurred
-
testGet
public void testGet() throws ServletException, IOExceptionTests responses forGETrequests.- Throws:
ServletException- if a servlet error occurredIOException- if an I/O error occurred
-
testHead
public void testHead() throws ServletException, IOExceptionTests responses forHEADrequests.- Throws:
ServletException- if a servlet error occurredIOException- if an I/O error occurred
-
-