Class CustomersControllerIntegrationTest

    • 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
      • 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
      • VALID_CUSTOMER_ID

        public static final java.lang.String VALID_CUSTOMER_ID
        See Also:
        Constant Field Values
      • ANONYMOUS_CART_ID

        public static final java.lang.String ANONYMOUS_CART_ID
        See Also:
        Constant Field Values
      • NONANONYMOUS_CART_ID

        public static final java.lang.String NONANONYMOUS_CART_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • CustomersControllerIntegrationTest

        public CustomersControllerIntegrationTest()
    • 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()
      • bindAnonymousCartToMissingCustomerTest

        public void bindAnonymousCartToMissingCustomerTest()
      • bindMissingAnonymousCartToCustomerTest

        public void bindMissingAnonymousCartToCustomerTest()
      • bindAnonymousCartToInvalidCustomerTest

        public void bindAnonymousCartToInvalidCustomerTest()
      • bindAnonymousInvalidCartToCustomerTest

        public void bindAnonymousInvalidCartToCustomerTest()
      • bindAnonymousCartToCustomerTest

        public void bindAnonymousCartToCustomerTest()
      • 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)
      • bindAnonymousCartToCustomer

        protected javax.ws.rs.core.Response bindAnonymousCartToCustomer​(java.lang.String cartId,
                                                                        java.lang.String customerId)