com.atlassian.crowd.acceptance.tests.persistence.dao.webhook
Class WebhookDaoCRUDTest
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebhookDaoCRUDTest
public WebhookDaoCRUDTest()
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.