ACS-4966 Explicit test result logging

This commit is contained in:
MichalKinas
2023-04-13 19:00:35 +02:00
parent b0f767c1ae
commit 14ba7f5d55
2 changed files with 3 additions and 2 deletions

View File

@@ -131,9 +131,9 @@ public class CategoriesPathTests extends CategoriesRestTest
.getCategoryChildren();
restClient.assertStatusCodeIs(OK);
assertTrue(actualCategories.getEntries().stream()
actualCategories.getEntries().stream()
.map(RestCategoryModel::onModel)
.allMatch(cat -> cat.getPath().equals("/categories/General/" + parentCategory.getName())));
.forEach(cat -> assertTrue(cat.getPath().equals("/categories/General/" + parentCategory.getName())));
}
/**

View File

@@ -836,6 +836,7 @@ public class CategoriesImplTest
{
final String categoryNewName = "categoryNewName";
final Category fixedCategory = createCategoryOnlyWithName(categoryNewName);
// simulate path provided by client to check if it will be ignored
fixedCategory.setPath("/test/TestCat");
final QName categoryQName = createCmQNameOf(CATEGORY_NAME);
final NodeRef parentCategoryNodeRef = createNodeRefWithId(PARENT_ID);