[
http://mifosforge.jira.com/browse/MIFOS-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58287#action_58287
]
Dhanushka kottegoda commented on MIFOS-3073:
--------------------------------------------
This is a new Spring3 TestContext framework based test case, and adding
StaticHibernateUtil based transaction boundaries to this class (using @Before
and @After)leads in to NullPointerException as follows.
But tests run successfully when I use @Transactional to make test transactional
instead of above approach, I think it's better to use @Transactional directly
for TestContext based test cases. instead of use StaticHibernateUtil now and
move in to @Transactional later.
Any comments ....?
java.lang.NullPointerException
at
org.mifos.framework.hibernate.helper.StaticHibernateUtil.startTransaction(StaticHibernateUtil.java:62)
at
org.mifos.accounts.api.StandardAccountServiceTest.setup(StandardAccountServiceTest.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
> Fixing StandardAccountServiceTest test case for transactional support.
> -----------------------------------------------------------------------
>
> Key: MIFOS-3073
> URL: http://mifosforge.jira.com/browse/MIFOS-3073
> Project: mifos
> Issue Type: Dev Task
> Reporter: Dhanushka kottegoda
> Assignee: Dhanushka kottegoda
> Fix For: Release E - Iteration 0
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues