Hello,
Liferay service builder is a great utility. But when it come to testing Liferay service class, there are some information available. But I couldn't find any complete example for junit test cases. I am new to Liferay, got information about test setup
public void setUp() {
ServiceTestUtil.initServices();
ServiceTestUtil.initPermissions();
}
public void tearDown() {
ServiceTestUtil.destroyServices();
}
I developed a service to manage (MyMasterDataLocalService) CRUDE operation on a Business entity. Service builder, I deployed and stuck up in testing. Can any one share an example in detail. Like
1.portal-test.properties
2.test-portal-impl.properties
3.Invoke service
4.Class path settings
Alternatively can we use Spring TestCases with @contextconfigurator ?. Problem with this is Hibernate file are not getting loaded. To load hibernate file is not possible as it doesn't follow the Spring DTD.
Looking forward valueable information. Thank you.
regards,
Kishore
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.