JUnit Liferay services
I use liferay service builder in my project and now i want to test *Util classes. It would be easy, but i don't know simple method of init environment. For example in ant testing with spring configuration from service.xml (auto generated) i use InitUtil.initWithSpring() for init beans, but get follow error: [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,413 sec [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2,413 sec [junit] [junit] Testcase: testJournalArticleSearch(MTest): Caused an ERROR [junit] BeanLocator has not been set for servlet context My-portlet [junit]