com.atlassian.crowd.acceptance.tests.persistence.dao.webhook
Class WebhookDaoCRUDTest

java.lang.Object
  extended by com.atlassian.crowd.acceptance.tests.persistence.dao.webhook.WebhookDaoCRUDTest

@ContextConfiguration(locations={"classpath:/applicationContext-config.xml","classpath:/applicationContext-CrowdDAO.xml"})
@TestExecutionListeners(value={org.springframework.test.context.transaction.TransactionalTestExecutionListener.class,org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class})
@Transactional
public class WebhookDaoCRUDTest
extends Object

Integration tests for the CRUD operations of WebhookDAO

Since:
2.7

Constructor Summary
WebhookDaoCRUDTest()
           
 
Method Summary
 void fixHiLo()
           
 void loadTestData()
           
 void testAddShouldAssignAnId()
           
 void testAddShouldAssignDifferentIdsToDifferentWebhooks()
           
 void testAddShouldPersistTemplateFields()
           
 void testFindAllWebhooksJustAdded()
           
 void testFindByApplicationAndEndpointUrl()
           
 void testFindByApplicationAndEndpointUrlWebhookThatDoesNotExist()
           
 void testFindByIdWebhookJustAdded()
           
 void testFindByIdWebhookJustRemoved()
           
 void testFindByIdWebhookThatDoesNotExist()
           
 void testRemoveNonExistingWebhook()
           
 void testRemoveWebhook()
           
 void testRemovingApplicationRemovesWebhooksInCascade()
           
 void testUpdateExistingWebhook()
           
 void testUpdateNonExistingWebhook()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebhookDaoCRUDTest

public WebhookDaoCRUDTest()
Method Detail

loadTestData

@BeforeTransaction
public void loadTestData()
                  throws Exception
Throws:
Exception

fixHiLo

public void fixHiLo()

testAddShouldAssignAnId

public void testAddShouldAssignAnId()
                             throws Exception
Throws:
Exception

testAddShouldAssignDifferentIdsToDifferentWebhooks

public void testAddShouldAssignDifferentIdsToDifferentWebhooks()
                                                        throws Exception
Throws:
Exception

testAddShouldPersistTemplateFields

public void testAddShouldPersistTemplateFields()
                                        throws Exception
Throws:
Exception

testFindByIdWebhookJustAdded

public void testFindByIdWebhookJustAdded()
                                  throws Exception
Throws:
Exception

testFindAllWebhooksJustAdded

public void testFindAllWebhooksJustAdded()
                                  throws Exception
Throws:
Exception

testFindByIdWebhookThatDoesNotExist

public void testFindByIdWebhookThatDoesNotExist()
                                         throws Exception
Throws:
Exception

testFindByIdWebhookJustRemoved

public void testFindByIdWebhookJustRemoved()
                                    throws Exception
Throws:
Exception

testRemovingApplicationRemovesWebhooksInCascade

public void testRemovingApplicationRemovesWebhooksInCascade()
                                                     throws Exception
Throws:
Exception

testFindByApplicationAndEndpointUrl

public void testFindByApplicationAndEndpointUrl()
                                         throws Exception
Throws:
Exception

testFindByApplicationAndEndpointUrlWebhookThatDoesNotExist

public void testFindByApplicationAndEndpointUrlWebhookThatDoesNotExist()
                                                                throws Exception
Throws:
Exception

testRemoveWebhook

public void testRemoveWebhook()
                       throws Exception
Throws:
Exception

testRemoveNonExistingWebhook

public void testRemoveNonExistingWebhook()
                                  throws Exception
Throws:
Exception

testUpdateExistingWebhook

public void testUpdateExistingWebhook()
                               throws Exception
Throws:
Exception

testUpdateNonExistingWebhook

public void testUpdateNonExistingWebhook()
                                  throws Exception
Throws:
Exception


Copyright © 2013 Atlassian. All Rights Reserved.