public class PreviewWebServicesTest extends ServicelayerTest
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELDS_QUERYPARAM |
static String |
OAUTH_CLIENT_ID |
static String |
OAUTH_CLIENT_PASS |
defaultLanguage, jaloSession| Constructor and Description |
|---|
PreviewWebServicesTest() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
marshallDto(Object input,
Class c) |
void |
setUp() |
void |
shouldReturn201ForAdmin() |
void |
shouldReturn201WithSearchRestrictionsEnabled() |
void |
shouldReturn400ForRandomUser() |
void |
testGetForCatalogOnlyForPostTicketMinimum() |
void |
testGetForForPostTicketMinimum() |
void |
testGetForNotExistingTicket() |
void |
testPostEmptyEntityForValidationErrors() |
void |
testPostForTicketMinimum() |
void |
testPostForTicketWithEverything() |
void |
testPostForTicketWithPage() |
void |
testPostWrongCatalog() |
void |
testPutBadResourcePathForPreview() |
void |
testPutForCodeConflictExistingTicket() |
void |
testPutForNotExistingTicket() |
void |
testPutPreviewWithNullMandatoryFields() |
void |
testPutPreviewWithNullNotMandatoryFields() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic static final String OAUTH_CLIENT_ID
public static final String OAUTH_CLIENT_PASS
public static final String FIELDS_QUERYPARAM
public void testPostEmptyEntityForValidationErrors()
throws IOException
IOExceptionpublic void testPostForTicketMinimum()
throws IOException
IOExceptionpublic void testPostWrongCatalog()
throws IOException
IOExceptionpublic void testPostForTicketWithPage()
throws IOException
IOExceptionpublic void testPostForTicketWithEverything()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldReturn201ForAdmin()
throws IOException
IOExceptionpublic void shouldReturn400ForRandomUser()
throws IOException
IOExceptionpublic void shouldReturn201WithSearchRestrictionsEnabled()
throws NoSuchMethodException,
SecurityException,
IllegalAccessException,
IllegalArgumentException,
InvocationTargetException,
JAXBException
public void testGetForForPostTicketMinimum()
throws IOException
IOExceptionpublic void testGetForCatalogOnlyForPostTicketMinimum()
throws IOException
IOExceptionpublic void testGetForNotExistingTicket()
throws IOException
IOExceptionpublic void testPutForNotExistingTicket()
throws IOException
IOExceptionpublic void testPutForCodeConflictExistingTicket()
throws IOException
IOExceptionpublic void testPutBadResourcePathForPreview()
throws IOException
IOExceptionpublic void testPutPreviewWithNullMandatoryFields()
throws IOException
IOExceptionpublic void testPutPreviewWithNullNotMandatoryFields()
throws IOException,
JAXBException
IOExceptionJAXBExceptionprotected String marshallDto(Object input, Class c) throws JAXBException
JAXBExceptionCopyright © 2017 SAP SE. All Rights Reserved.