Class CustomersControllerIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.assistedservicewebservices.controllers.AbstractControllerIntegrationIntegrationTest
-
- de.hybris.platform.assistedservicewebservices.controllers.CustomersControllerIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class CustomersControllerIntegrationTest extends AbstractControllerIntegrationIntegrationTest
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CUSTOMER_LIST_PARAM
static java.lang.String
CUSTOMER_SEARCH_URI
static java.lang.String
DUMMY_USER_UID
static java.lang.String[]
DUMMY_USERS
static java.lang.String
NOT_AGENT
static java.lang.String
TEMP_CUSTOMER_LIST_ID
-
Fields inherited from class de.hybris.platform.assistedservicewebservices.controllers.AbstractControllerIntegrationIntegrationTest
BASE_SITE_ID, BASE_SITE_PARAM, CURRENT_PAGE, OAUTH_CLIENT_ID, OAUTH_CLIENT_PASS, OAUTH_PASSWORD, OAUTH_USERNAME, PAGE_SIZE, SORT
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description CustomersControllerIntegrationTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.assistedservicewebservices.controllers.AbstractControllerIntegrationIntegrationTest
getWsSecuredRequestBuilder, setUp
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
CUSTOMER_SEARCH_URI
public static final java.lang.String CUSTOMER_SEARCH_URI
- See Also:
- Constant Field Values
-
CUSTOMER_LIST_PARAM
public static final java.lang.String CUSTOMER_LIST_PARAM
- See Also:
- Constant Field Values
-
DUMMY_USER_UID
public static final java.lang.String DUMMY_USER_UID
- See Also:
- Constant Field Values
-
TEMP_CUSTOMER_LIST_ID
public static final java.lang.String TEMP_CUSTOMER_LIST_ID
- See Also:
- Constant Field Values
-
DUMMY_USERS
public static final java.lang.String[] DUMMY_USERS
-
NOT_AGENT
public static final java.lang.String NOT_AGENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCustomersByUid
public void getCustomersByUid()
-
getFirstTwoCustomersInDescendingOrderSortedByName
public void getFirstTwoCustomersInDescendingOrderSortedByName()
-
getCustomerFromThirdPageSortedByUidInAscendingOrder
public void getCustomerFromThirdPageSortedByUidInAscendingOrder()
-
getCustomersByNotExistingUid
public void getCustomersByNotExistingUid()
-
shouldGetAllCustomerByEmptyCriteria
public void shouldGetAllCustomerByEmptyCriteria()
-
shouldGetCustomerWithOrder
public void shouldGetCustomerWithOrder()
-
shouldNotGetCustomerWithWrongOrder
public void shouldNotGetCustomerWithWrongOrder()
-
getCustomersByEmptyQuery
public void getCustomersByEmptyQuery()
-
shouldNotGetCustomersByUnknownCustomerListId
public void shouldNotGetCustomersByUnknownCustomerListId()
-
shouldGetCustomersByCustomerListId
public void shouldGetCustomersByCustomerListId()
-
shouldGetCustomersByCustomerListIdWithPaging
public void shouldGetCustomersByCustomerListIdWithPaging()
-
shouldGetCustomersByCustomerListIdWithPagingAndSort
public void shouldGetCustomersByCustomerListIdWithPagingAndSort()
-
getCustomersByNotAsAgent
public void getCustomersByNotAsAgent()
-
performGetCustomersWithDifferentQueries
protected javax.ws.rs.core.Response performGetCustomersWithDifferentQueries(java.util.Map<java.lang.String,java.lang.String> params)
-
performGetCustomersCall
protected javax.ws.rs.core.Response performGetCustomersCall(java.lang.String searchCritera, java.lang.String sort, java.lang.String pageSize, java.lang.String currentPage)
-
getCustomerNamesFromResponse
protected java.util.List<java.lang.String> getCustomerNamesFromResponse(javax.ws.rs.core.Response response)
-
-