@UnitTest public class CustomerTicketingFacadeTest extends java.lang.Object
| Constructor and Description |
|---|
CustomerTicketingFacadeTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setup()
Test seutp.
|
void |
shouldReturnAssociatedObjectMapForCurrentUser()
|
void |
shouldReturnCsStatusClose()
|
void |
shouldReturnCsStatusNew()
|
void |
shouldReturnCsStatusOpen()
|
void |
shouldReturnListOfAttachments()
|
void |
shouldReturnNullIfNoMatchCsStatus()
|
void |
shouldReturnNullOfAttachments()
|
void |
shouldReturnNullOfAttachmentsIfIOException()
|
void |
shouldUpdateTicketStatusFromOpenToClose()
|
void |
shouldUpdateTicketStatusFromOpenToInProgress()
|
void |
shouldUpdateTicketWithNewNote()
|
public void setup()
public void shouldReturnAssociatedObjectMapForCurrentUser()
DefaultCustomerTicketingFacade.getAssociatedToObjects()
should return the associate object map which contents 2 TicketAssociatedData.
public void shouldReturnCsStatusNew()
DefaultCustomerTicketingFacade.getCsStatus(TicketData)
should return CsTicketStatus.NEW
public void shouldReturnCsStatusOpen()
DefaultCustomerTicketingFacade.getCsStatus(TicketData)
should return CsTicketStatus.OPEN
public void shouldReturnCsStatusClose()
DefaultCustomerTicketingFacade.getCsStatus(TicketData)
should return CsTicketStatus.CLOSED
public void shouldReturnNullIfNoMatchCsStatus()
DefaultCustomerTicketingFacade.getCsStatus(TicketData)
should return NULL value if no match status found.
public void shouldReturnNullOfAttachments()
DefaultCustomerTicketingFacade.getAttachments(TicketData)
should return NULL value if no attachments in ticket data.
public void shouldReturnListOfAttachments()
throws java.io.IOException
DefaultCustomerTicketingFacade.getAttachments(TicketData)
should return list of attachments which contents 2 media models.
java.io.IOExceptionpublic void shouldReturnNullOfAttachmentsIfIOException()
throws java.io.IOException
DefaultCustomerTicketingFacade.getAttachments(TicketData)
should return NULL value if an IOException occurs
java.io.IOExceptionpublic void shouldUpdateTicketWithNewNote()
DefaultCustomerTicketingFacade.updateTicket(TicketData)
should invoke
TicketBusinessService.addNoteToTicket(CsTicketModel, CsInterventionType, CsEventReason, String, Collection)
when ticket is NEW state and in OPEN status.
public void shouldUpdateTicketStatusFromOpenToClose()
throws TicketException
DefaultCustomerTicketingFacade.updateTicket(TicketData)
should invoke
TicketBusinessService.resolveTicket(CsTicketModel, CsInterventionType, CsResolutionType, String, Collection)
when ticket status transit from OPEN to CLOSE
TicketExceptionpublic void shouldUpdateTicketStatusFromOpenToInProgress()
throws TicketException
DefaultCustomerTicketingFacade.updateTicket(TicketData)
should invoke
TicketBusinessService.unResolveTicket(CsTicketModel, CsInterventionType, CsEventReason, String, Collection)
when ticket status transit from NEW to INPROCESS
TicketExceptionCopyright © 2018 SAP SE. All Rights Reserved.