@IntegrationTest public class DefaultPagedB2BDocumentDaoTest extends B2BIntegrationTest
| Modifier and Type | Field and Description |
|---|---|
static java.text.SimpleDateFormat |
sdf |
b2bUnitService, baseSiteService, sessionService, userServiceimportServicejaloSession| Constructor and Description |
|---|
DefaultPagedB2BDocumentDaoTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
shouldGetErrorCriteriaNotFound() |
void |
shouldGetErrorInvalidPage() |
void |
shouldNotReturnResult() |
void |
shouldNotReturnResultFilteredByDocumentType()
This test will return total of 0 result, filtered by documentType "UNKNOWN"
|
void |
shouldNotReturnResultForServicesEastFilteredByDocumentType()
This test will return total of 0 result, for unit "Services East" filtered by documentType "UNKNOWN"
|
void |
shouldReturnAllDocumentsAscSort() |
void |
shouldReturnAllDocumentsDescSort() |
void |
shouldReturnAllPagedDocumentsFilteredByDocumentNumberRange()
This test should return all results including the documents whose documentType.displayInAllList=false.
|
void |
shouldReturnAllPagedDocumentsFilteredByDocumentTypeSortedByDefaultSort()
This test should return all results including the documents whose documentType.displayInAllList=false.
|
void |
shouldReturnAllPagedDocumentsForProntoGoodsFilteredByDocumentNumberRange()
This test should return only 1 result including the document whose documentType.displayInAllList=false.
|
void |
shouldReturnAllPagedDocumentsSortedByDefaultSort()
This test should return all results except the documents whose documentType.displayInAllList=false.
|
void |
shouldReturnAllPagedDocumentsSortedByDocumentStatusDesc()
This test returns 5 results as page size is set to 5, sorted byDocumentStatusDesc.
|
void |
shouldReturnDocumentAssociateToUser() |
void |
shouldReturnDocumentsBetweenAmountRange() |
void |
shouldReturnDocumentsBetweenDateRange() |
void |
shouldReturnDocumentsBetweenDueDateRange() |
void |
shouldReturnDocumentsBetweenOpenamountRange() |
void |
shouldReturnEmptyResultForServicesWestDocuments() |
void |
shouldReturnNoOpenDocumentsForServicesWest()
This test will return total of 0 results, for unit "Services West" with documentStatus "Open".
|
void |
shouldReturnOnlyDocumentsLikeNote() |
void |
shouldReturnOnlyDocumentsWherePurchaseOrder() |
void |
shouldReturnOnlyFirstPageSortByDueDate() |
void |
shouldReturnOnlyFirstPageSortedByDueDateAsc()
This test should return only 2 results as set on pageSize, sorted by "byDueDateAsc".
|
void |
shouldReturnOpenDocuments() |
void |
shouldReturnPagedClosedDocumentsFilteredByDocumentNumberRange()
This test will return total of 1 result, filtered by documentNumber from "CRN-003" to "CRN-006" with
documentStatus "Closed".
|
void |
shouldReturnPagedClosedDocumentsForCustomRetailFilteredByDocumentNumberRange()
This test will return total of 1 result, for unit "Custom Retail" filtered by documentNumber from "DBN-001" to
"DBN-002" with documentStatus "Closed".
|
void |
shouldReturnPagedDocumentAssociatedToUserSortedByOpenAmountDesc()
This test will return total of 3 results, sorted by "byOpenAmountDesc" for the user mark.rivers@rustic-hw.com.
|
void |
shouldReturnPagedDocumentsForServicesEastFilteredByDocumentNumber()
This test will return total of 3 result, for unit "Services East" filtered by documentNumber with wildcard search
on "005".
|
void |
shouldReturnPagedDocumentsWithInvoiceForPronto()
This test returns 3 results, for unit "Pronto" sorted byDocumentNumberDesc with documentType "Invoice".
|
void |
shouldReturnPagedDocumentsWithPurchaseOrder()
This test returns 1 result, since the test data contains only 1 document with type Purchase Order sorted
byDocumentStatusDesc.
|
void |
shouldReturnPagedOpenDocumentsFilteredByDateRange()
This test will return total of 2 result, filtered by date from "08/10/2013" to "08/11/2013" with documentStatus
"Open", "sorted byDocumentDateAsc".
|
void |
shouldReturnPagedOpenDocumentsForAmountRange()
This test will return total of 1 result, filtered by amount from "75.30" to "76.31" with documentStatus "Open".
|
void |
shouldReturnPagedOpenDocumentsForCustomRetailFilteredByAmountRange()
This test will return total of 1 result, for unit "Custom Retail" filtered by amount from "24" to "27" with
documentStatus "Open".
|
void |
shouldReturnPagedOpenDocumentsForCustomRetailFilteredByDateRange()
This test will return total of 1 result, for unit "Custom Retail" filtered by date from "08/09/2013" to
"08/11/2013" with documentStatus "Open".
|
void |
shouldReturnPagedOpenDocumentsForProntoServicesSortedByCreationDateAsc()
This test will return total of 2 results, for unit "Pronto Services" with documentStatus "Open".
|
void |
shouldReturnPagedOpenDocumentsSortedByOpenAmountAsc()
This test will return total of 10 results cause of the page size set to 10, sorted by "byOpenAmountDesc" with
documentStatus "Open".
|
void |
shouldReturnProntoServicesDocuments() |
void |
shouldReturnSecondPageSortByAmount() |
void |
shouldReturnSecondPageSortedByOriginalAmountAsc()
This test will return total of 2 results, sorted by "byOriginalAmountAsc" but on page 1.
|
createPageableData, login, logincreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldReturnAllDocumentsAscSort()
public void shouldReturnAllDocumentsDescSort()
public void shouldReturnOnlyDocumentsWherePurchaseOrder()
public void shouldReturnOnlyDocumentsLikeNote()
public void shouldReturnOnlyFirstPageSortByDueDate()
public void shouldReturnSecondPageSortByAmount()
public void shouldReturnDocumentAssociateToUser()
public void shouldReturnOpenDocuments()
public void shouldReturnProntoServicesDocuments()
public void shouldReturnEmptyResultForServicesWestDocuments()
public void shouldReturnDocumentsBetweenAmountRange()
public void shouldReturnDocumentsBetweenOpenamountRange()
public void shouldReturnDocumentsBetweenDateRange()
throws java.text.ParseException
java.text.ParseExceptionpublic void shouldReturnDocumentsBetweenDueDateRange()
throws java.text.ParseException
java.text.ParseExceptionpublic void shouldNotReturnResult()
public void shouldGetErrorCriteriaNotFound()
public void shouldGetErrorInvalidPage()
public void shouldReturnAllPagedDocumentsSortedByDefaultSort()
public void shouldReturnAllPagedDocumentsFilteredByDocumentTypeSortedByDefaultSort()
public void shouldReturnAllPagedDocumentsFilteredByDocumentNumberRange()
public void shouldReturnAllPagedDocumentsForProntoGoodsFilteredByDocumentNumberRange()
public void shouldReturnAllPagedDocumentsSortedByDocumentStatusDesc()
public void shouldReturnPagedDocumentsWithPurchaseOrder()
public void shouldReturnPagedDocumentsWithInvoiceForPronto()
public void shouldReturnOnlyFirstPageSortedByDueDateAsc()
public void shouldReturnSecondPageSortedByOriginalAmountAsc()
public void shouldReturnPagedDocumentAssociatedToUserSortedByOpenAmountDesc()
public void shouldReturnPagedOpenDocumentsSortedByOpenAmountAsc()
public void shouldReturnPagedOpenDocumentsForProntoServicesSortedByCreationDateAsc()
public void shouldReturnNoOpenDocumentsForServicesWest()
public void shouldReturnPagedOpenDocumentsForAmountRange()
public void shouldReturnPagedOpenDocumentsForCustomRetailFilteredByAmountRange()
public void shouldReturnPagedOpenDocumentsFilteredByDateRange()
throws java.text.ParseException
java.text.ParseExceptionpublic void shouldReturnPagedOpenDocumentsForCustomRetailFilteredByDateRange()
throws java.text.ParseException
java.text.ParseExceptionpublic void shouldReturnPagedClosedDocumentsFilteredByDocumentNumberRange()
public void shouldReturnPagedClosedDocumentsForCustomRetailFilteredByDocumentNumberRange()
public void shouldReturnPagedDocumentsForServicesEastFilteredByDocumentNumber()
public void shouldNotReturnResultFilteredByDocumentType()
public void shouldNotReturnResultForServicesEastFilteredByDocumentType()
Copyright © 2018 SAP SE. All Rights Reserved.