Class DefaultAbstractQueryHelperTest
- java.lang.Object
-
- de.hybris.platform.servicelayer.search.paginated.DefaultAbstractQueryHelperTest
-
@UnitTest public class DefaultAbstractQueryHelperTest extends java.lang.Object
Unit test forDefaultAbstractQueryHelper
-
-
Constructor Summary
Constructors Constructor Description DefaultAbstractQueryHelperTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends AbstractQuery>
voidassertClonedResults(T original, T updated)
Assert the given two AbstractQuery sub-class parameters have the same attribute values.protected <T extends AbstractQuery>
voidsetAllAttributes(T original)
Sets all attributes of given search query object, so that these values can be compared with the ones returned from abstractQueryHelper classvoid
shouldThrowIllegalArgumentExceptionNullFlexibleSearchQuery()
void
shouldThrowIllegalArgumentExceptionNullGenericQuery()
void
shouldThrowIllegalArgumentExceptionNullGenericSearchQuery()
void
shouldThrowIllegalArgumentExceptionNullStringQuery()
void
shouldUpdateFlexibleSearchQuery()
void
shouldUpdateGenericSearchQuery()
-
-
-
Method Detail
-
shouldUpdateFlexibleSearchQuery
public void shouldUpdateFlexibleSearchQuery()
-
shouldUpdateGenericSearchQuery
public void shouldUpdateGenericSearchQuery()
-
shouldThrowIllegalArgumentExceptionNullStringQuery
public void shouldThrowIllegalArgumentExceptionNullStringQuery()
-
shouldThrowIllegalArgumentExceptionNullFlexibleSearchQuery
public void shouldThrowIllegalArgumentExceptionNullFlexibleSearchQuery()
-
shouldThrowIllegalArgumentExceptionNullGenericQuery
public void shouldThrowIllegalArgumentExceptionNullGenericQuery()
-
shouldThrowIllegalArgumentExceptionNullGenericSearchQuery
public void shouldThrowIllegalArgumentExceptionNullGenericSearchQuery()
-
setAllAttributes
protected <T extends AbstractQuery> void setAllAttributes(T original)
Sets all attributes of given search query object, so that these values can be compared with the ones returned from abstractQueryHelper class
-
assertClonedResults
protected <T extends AbstractQuery> void assertClonedResults(T original, T updated)
Assert the given two AbstractQuery sub-class parameters have the same attribute values.- Parameters:
original
- the originalupdated
- the updated
-
-