com.atlassian.crowd.acceptance.tests.rest.service
Class WebhooksResourceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
              extended by com.atlassian.crowd.acceptance.tests.rest.service.WebhooksResourceTest
All Implemented Interfaces:
junit.framework.Test

public class WebhooksResourceTest
extends RestCrowdServiceAcceptanceTestCase


Field Summary
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
APPLICATION_NAME, APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, EVENTS_RESOURCE, GROUPS_RESOURCE, MT, REST_SERVICE_NAME, SESSION_RESOURCE, USERS_RESOURCE, WEBHOOKS_RESOURCE
 
Constructor Summary
WebhooksResourceTest(String name)
           
WebhooksResourceTest(String name, RestServer restServer)
           
 
Method Summary
 void testGetNonExistingWebhook()
           
 void testRegisterAndGetWebhook()
           
 void testRegisterAndUnregisterWebhook()
           
 void testRegisterWebhookWithInvalidEndpointUrlShouldFail()
           
 void testRegisterWebhookWithSimpleBody()
           
 void testUnregisterNonExistingWebhook()
           
 void testWebhookFullCycle()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
authenticateUser, getBaseUriBuilder, getBaseUriBuilder, getBaseUriBuilder, getRootWebResource, getWebResource, getWebResource, setRestServer, setUp, statusToString, tearDown
 
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebhooksResourceTest

public WebhooksResourceTest(String name)

WebhooksResourceTest

public WebhooksResourceTest(String name,
                            RestServer restServer)
Method Detail

testGetNonExistingWebhook

public void testGetNonExistingWebhook()
                               throws Exception
Throws:
Exception

testRegisterAndGetWebhook

public void testRegisterAndGetWebhook()
                               throws Exception
Throws:
Exception

testRegisterWebhookWithInvalidEndpointUrlShouldFail

public void testRegisterWebhookWithInvalidEndpointUrlShouldFail()
                                                         throws Exception
Throws:
Exception

testRegisterWebhookWithSimpleBody

public void testRegisterWebhookWithSimpleBody()
                                       throws Exception
Throws:
Exception

testRegisterAndUnregisterWebhook

public void testRegisterAndUnregisterWebhook()
                                      throws Exception
Throws:
Exception

testUnregisterNonExistingWebhook

public void testUnregisterNonExistingWebhook()
                                      throws Exception
Throws:
Exception

testWebhookFullCycle

public void testWebhookFullCycle()
                          throws Exception
Throws:
Exception


Copyright © 2014 Atlassian. All Rights Reserved.