Class DefaultItemLookupStrategyUnitTest
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.lookup.DefaultItemLookupStrategyUnitTest
-
@UnitTest public class DefaultItemLookupStrategyUnitTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DefaultItemLookupStrategyUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestCountAllItemsInEntitySet()voidtestCountQuery()voidtestDuplicatedExistingItem_NoNavParam()voidtestEntityWithoutKeyNavProperty()voidtestEntityWithUniqueAndNullableNavProperty()voidtestExistingItem_NoNavParam()voidtestExistingItem_NoParam()voidtestExistingItem_WithNavParam()voidtestExistingItem_WithNavParam_ButNoNavItemFound()voidtestFlexibleSearchQueryForCollectionDifferentPageRequest()voidtestFlexibleSearchQueryForCollectionIsOrderedByPK()voidtestFlexibleSearchQueryForCollectionNeedsTotalCount()voidtestLookupItems()voidtestLookupItemsQuerySetsTotalCountToTrue()voidtestLookupItemsQueryWhenInlineCountIsPresent()voidtestLookupItemsQueryWhenODataEntryIsNotInItemLookupRequestNoWhereClauseInQuery()voidtestMultipleExistingItem_NoKeyParam_NoNavParam()voidtestNotExistingItem_NoNavParam()
-
-
-
Method Detail
-
setUp
public void setUp() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testExistingItem_NoParam
public void testExistingItem_NoParam() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testExistingItem_WithNavParam
public void testExistingItem_WithNavParam() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testExistingItem_WithNavParam_ButNoNavItemFound
public void testExistingItem_WithNavParam_ButNoNavItemFound() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testExistingItem_NoNavParam
public void testExistingItem_NoNavParam() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testDuplicatedExistingItem_NoNavParam
public void testDuplicatedExistingItem_NoNavParam() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testMultipleExistingItem_NoKeyParam_NoNavParam
public void testMultipleExistingItem_NoKeyParam_NoNavParam()
-
testNotExistingItem_NoNavParam
public void testNotExistingItem_NoNavParam() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testEntityWithoutKeyNavProperty
public void testEntityWithoutKeyNavProperty() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testEntityWithUniqueAndNullableNavProperty
public void testEntityWithUniqueAndNullableNavProperty() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testLookupItems
public void testLookupItems() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testLookupItemsQuerySetsTotalCountToTrue
public void testLookupItemsQuerySetsTotalCountToTrue() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testLookupItemsQueryWhenInlineCountIsPresent
public void testLookupItemsQueryWhenInlineCountIsPresent() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testLookupItemsQueryWhenODataEntryIsNotInItemLookupRequestNoWhereClauseInQuery
public void testLookupItemsQueryWhenODataEntryIsNotInItemLookupRequestNoWhereClauseInQuery() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testFlexibleSearchQueryForCollectionNeedsTotalCount
public void testFlexibleSearchQueryForCollectionNeedsTotalCount() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testFlexibleSearchQueryForCollectionDifferentPageRequest
public void testFlexibleSearchQueryForCollectionDifferentPageRequest() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testFlexibleSearchQueryForCollectionIsOrderedByPK
public void testFlexibleSearchQueryForCollectionIsOrderedByPK() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testCountAllItemsInEntitySet
public void testCountAllItemsInEntitySet() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
testCountQuery
public void testCountQuery() throws org.apache.olingo.odata2.api.edm.EdmException- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
-