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 void
setUp()
Prepares theServletConfig
object for testing.void
tearDown()
Releases theServletConfig
object.void
testGet()
Tests responses forGET
requests.void
testHead()
Tests responses forHEAD
requests.void
testLifecycle()
-
-
-
Method Detail
-
setUp
public void setUp()
Prepares theServletConfig
object for testing.
-
tearDown
public void tearDown()
Releases theServletConfig
object.
-
testLifecycle
public void testLifecycle() throws ServletException
- Throws:
ServletException
- if a servlet error occurred
-
testGet
public void testGet() throws ServletException, IOException
Tests responses forGET
requests.- Throws:
ServletException
- if a servlet error occurredIOException
- if an I/O error occurred
-
testHead
public void testHead() throws ServletException, IOException
Tests responses forHEAD
requests.- Throws:
ServletException
- if a servlet error occurredIOException
- if an I/O error occurred
-
-