public class C4CTicketFacadeImplTest extends ServicelayerTest
C4CTicketFacadeImplimportServicejaloSession| Constructor and Description |
|---|
C4CTicketFacadeImplTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup()
Test setup.
|
void |
shouldAddBatchHeaders()
Test o f
C4CTicketFacadeImpl#addBatchHeaders(String) should return http headers which populated correctly
data. |
void |
shouldCreateATicket()
Test
C4CTicketFacadeImpl.createTicket(TicketData) Should create a ticket. |
void |
shouldCreateBasicAuthHeader()
Test of
C4CTicketFacadeImpl#createBasicAuthHeader(String, String) Should create a correct basic auth
header. |
void |
shouldEnrichHeaders()
Test of
C4CTicketFacadeImpl#enrichHeaders(HttpHeaders, String) should return the enriched http headers
with required data. |
void |
shouldGetAssociatedToObjectsThrowUnsupportedOperationException()
Test of
C4CTicketFacadeImpl.getAssociatedToObjects() Should throw UnsupportedOperationException. |
void |
shouldGetDefaultHeaders()
Test of
C4CTicketFacadeImpl#getDefaultHeaders(String) should get a correct default header by given site
id. |
void |
shouldGetEnrichedHeaders()
Test of
C4CTicketFacadeImpl#getEnrichedHeaders() should return an enriched header. |
void |
shouldGetTicket()
Test of
C4CTicketFacadeImpl.getTicket(String) should get a ticket DTO by given ticket id. |
void |
shouldGetTicketCategoriesThrowUnsupportedOperationException()
Test of
C4CTicketFacadeImpl.getTicketCategories() Should throw UnsupportedOperationException. |
void |
shouldGetTickets()
Test of
C4CTicketFacadeImpl.getTickets(PageableData) should return a SearchPageData |
void |
shouldReturnCustomerSupportTicketExceptionWhenThrowIOException()
Test of
C4CTicketFacadeImpl.createTicket(TicketData) Should return runtime exception when something
happens |
void |
shouldReturnEmptySearchResultWhenGetTicketsThrowIOException()
Test of
C4CTicketFacadeImpl.getTickets(PageableData) should return an empty result list if throw
IOException. |
void |
shouldReturnEmptySearchResultWhenGetTicketsThrowRestClientException()
Test of
C4CTicketFacadeImpl.getTickets(PageableData) should return an empty result list if throw
RestClientException. |
void |
shouldReturnNullIfUpdateTicketWithOpenStatusResponseContainsError()
Test of
C4CTicketFacadeImpl.updateTicket(TicketData) should return null if update ticket with open status
bu the response contains errors. |
void |
shouldReturnRuntimeExceptionWhenGetTicketThrowIOException()
Test of
C4CTicketFacadeImpl.getTicket(String) Should return runtime exception when something goes wrong |
void |
shouldReturnRuntimeExceptionWhenGetTicketThrowRestClientException()
Test of
C4CTicketFacadeImpl.getTicket(String) Should return runtime exception when something goes wrong |
void |
shouldReturnRuntimeExceptionWhenThrowRestClientException()
Test of
C4CTicketFacadeImpl.createTicket(TicketData) throws runtime exp. |
void |
shouldThrownIllegalArgumentExceptionWhenUpdateTicketWithCompletedStatus()
Test of
C4CTicketFacadeImpl.updateTicket(TicketData) should throw IllegalArgumentException when ticket is
completed status. |
void |
shouldUpdateTicketWithOpenStatus()
Test of
C4CTicketFacadeImpl.updateTicket(TicketData) should update the ticket when the status is open. |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setup()
public void shouldCreateATicket()
throws java.io.IOException
C4CTicketFacadeImpl.createTicket(TicketData) Should create a ticket.java.io.IOExceptionpublic void shouldReturnRuntimeExceptionWhenThrowRestClientException()
throws java.io.IOException
C4CTicketFacadeImpl.createTicket(TicketData) throws runtime exp. when RestClientException happensjava.io.IOExceptionpublic void shouldReturnCustomerSupportTicketExceptionWhenThrowIOException()
throws java.io.IOException
C4CTicketFacadeImpl.createTicket(TicketData) Should return runtime exception when something
happensjava.io.IOExceptionpublic void shouldGetTicket()
throws java.io.IOException
C4CTicketFacadeImpl.getTicket(String) should get a ticket DTO by given ticket id.java.io.IOExceptionpublic void shouldReturnRuntimeExceptionWhenGetTicketThrowIOException()
throws java.io.IOException
C4CTicketFacadeImpl.getTicket(String) Should return runtime exception when something goes wrongjava.io.IOExceptionpublic void shouldReturnRuntimeExceptionWhenGetTicketThrowRestClientException()
throws java.io.IOException
C4CTicketFacadeImpl.getTicket(String) Should return runtime exception when something goes wrongjava.io.IOExceptionjava.lang.RuntimeExceptionpublic void shouldGetTickets()
throws java.io.IOException
C4CTicketFacadeImpl.getTickets(PageableData) should return a SearchPageDatajava.io.IOExceptionpublic void shouldReturnEmptySearchResultWhenGetTicketsThrowIOException()
throws java.io.IOException
C4CTicketFacadeImpl.getTickets(PageableData) should return an empty result list if throw
IOException.java.io.IOExceptionpublic void shouldReturnEmptySearchResultWhenGetTicketsThrowRestClientException()
throws java.io.IOException
C4CTicketFacadeImpl.getTickets(PageableData) should return an empty result list if throw
RestClientException.java.io.IOExceptionpublic void shouldCreateBasicAuthHeader()
C4CTicketFacadeImpl#createBasicAuthHeader(String, String) Should create a correct basic auth
header.public void shouldGetDefaultHeaders()
C4CTicketFacadeImpl#getDefaultHeaders(String) should get a correct default header by given site
id.public void shouldGetEnrichedHeaders()
C4CTicketFacadeImpl#getEnrichedHeaders() should return an enriched header.public void shouldGetAssociatedToObjectsThrowUnsupportedOperationException()
C4CTicketFacadeImpl.getAssociatedToObjects() Should throw UnsupportedOperationException.public void shouldGetTicketCategoriesThrowUnsupportedOperationException()
C4CTicketFacadeImpl.getTicketCategories() Should throw UnsupportedOperationException.public void shouldAddBatchHeaders()
C4CTicketFacadeImpl#addBatchHeaders(String) should return http headers which populated correctly
data.public void shouldEnrichHeaders()
C4CTicketFacadeImpl#enrichHeaders(HttpHeaders, String) should return the enriched http headers
with required data.public void shouldThrownIllegalArgumentExceptionWhenUpdateTicketWithCompletedStatus()
C4CTicketFacadeImpl.updateTicket(TicketData) should throw IllegalArgumentException when ticket is
completed status.public void shouldUpdateTicketWithOpenStatus()
throws JsonProcessingException
C4CTicketFacadeImpl.updateTicket(TicketData) should update the ticket when the status is open.JsonProcessingExceptionpublic void shouldReturnNullIfUpdateTicketWithOpenStatusResponseContainsError()
throws JsonProcessingException
C4CTicketFacadeImpl.updateTicket(TicketData) should return null if update ticket with open status
bu the response contains errors.JsonProcessingExceptionCopyright © 2018 SAP SE. All Rights Reserved.