diff --git a/dotcms-integration/src/test/java/com/dotmarketing/portlets/categories/business/CategoryFactoryTest.java b/dotcms-integration/src/test/java/com/dotmarketing/portlets/categories/business/CategoryFactoryTest.java index f80b3f32e963..8705cfb2ccad 100644 --- a/dotcms-integration/src/test/java/com/dotmarketing/portlets/categories/business/CategoryFactoryTest.java +++ b/dotcms-integration/src/test/java/com/dotmarketing/portlets/categories/business/CategoryFactoryTest.java @@ -359,8 +359,9 @@ public void getAllCategoriesFiltered() throws DotDataException { .parent(childCategory_6) .nextPersisted(); - List categoriesExpected = list(topLevelCategory_1, childCategory_1, childCategory_2, childCategory_3, - topLevelCategory_3, grandchildCategory_1).stream().map(Category::getInode).collect(Collectors.toList()); + List categoriesExpected = list(topLevelCategory_1, topLevelCategory_2, childCategory_1, childCategory_2, + childCategory_3, topLevelCategory_3, grandchildCategory_1).stream() + .map(Category::getInode).collect(Collectors.toList()); final List categories_1 = FactoryLocator.getCategoryFactory().findAll(stringToFilterBy.toUpperCase()) .stream().map(Category::getInode).collect(Collectors.toList());