diff --git a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/integration-tests/src/test/java/platformsample/DemoComponentIT.java b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/integration-tests/src/test/java/platformsample/DemoComponentIT.java index d30e660d..befd9190 100644 --- a/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/integration-tests/src/test/java/platformsample/DemoComponentIT.java +++ b/archetypes/alfresco-allinone-archetype/src/main/resources/archetype-resources/integration-tests/src/test/java/platformsample/DemoComponentIT.java @@ -55,10 +55,9 @@ public class DemoComponentIT extends AbstractAlfrescoIT { DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent"); NodeRef companyHome = demoComponent.getCompanyHome(); assertNotNull(companyHome); - String companyHomeName = (String) getServiceRegistry().getNodeService().getProperty( - companyHome, ContentModel.PROP_NAME); - assertNotNull(companyHomeName); - assertEquals("Company Home", companyHomeName); + String companyHomePath = getServiceRegistry().getNodeService().getPath(companyHome).toPrefixString(getServiceRegistry().getNamespaceService()); + assertNotNull(companyHomePath); + assertEquals("/app:company_home", companyHomePath); } @Test