mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-05-26 17:25:11 +00:00
457 - Archetypes - Modify IT company home assertion
Modity the assertion about the name of the company home node in the integration test DemoComponentIT to avoid issues with the language in which the Alfresco environment is installed. It asserts now about the path of the node which is independant from the language of the application.
This commit is contained in:
parent
e8976addea
commit
7792574dae
@ -55,10 +55,9 @@ public class DemoComponentIT extends AbstractAlfrescoIT {
|
|||||||
DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent");
|
DemoComponent demoComponent = (DemoComponent) getApplicationContext().getBean("${package}.DemoComponent");
|
||||||
NodeRef companyHome = demoComponent.getCompanyHome();
|
NodeRef companyHome = demoComponent.getCompanyHome();
|
||||||
assertNotNull(companyHome);
|
assertNotNull(companyHome);
|
||||||
String companyHomeName = (String) getServiceRegistry().getNodeService().getProperty(
|
String companyHomePath = getServiceRegistry().getNodeService().getPath(companyHome).toPrefixString(getServiceRegistry().getNamespaceService());
|
||||||
companyHome, ContentModel.PROP_NAME);
|
assertNotNull(companyHomePath);
|
||||||
assertNotNull(companyHomeName);
|
assertEquals("/app:company_home", companyHomePath);
|
||||||
assertEquals("Company Home", companyHomeName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user