[ 
http://mifosforge.jira.com/browse/MIFOS-3072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58280#action_58280
 ] 

Dhanushka kottegoda commented on MIFOS-3072:
--------------------------------------------

StaticHibernateUtil used in only two places 
(StaticHibernateUtil.commitTransaction()).
 
          1.)testLookupLoanIdFromExternalId() method.
          2.)setUp()method.

Removing StaticHibernateUtil.commitTransaction() from above two places doesn't 
break the tests. But once I add transactional boundaries as below results in to 
some broken test cases.
  
           a.) Add StaticHibernateUtil.startTransaction() to setUP()
           b.) Add StaticHibernateUtil.rollbackTransaction() to tearDown()


stack trace 


Tests run: 12, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 10.14 sec <<< 
FAILURE!
testLookupLoanIdFromExternalId(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.937 sec  <<< ERROR!
org.hibernate.StaleObjectStateException: Row was updated or deleted by another 
transaction (or unsaved-value mapping was incorrect): 
[org.mifos.accounts.loan.business.LoanFeeScheduleEntity#49]
        at 
org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1934)
        at 
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2694)
        at 
org.hibernate.persister.entity.AbstractEntityPersister.delete(AbstractEntityPersister.java:2895)
        at 
org.hibernate.action.EntityDeleteAction.execute(EntityDeleteAction.java:97)
        at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:268)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:260)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
        at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
        at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
        at 
org.mifos.framework.hibernate.helper.HibernateUtil.flushAndClearSession(HibernateUtil.java:144)
        at 
org.mifos.framework.hibernate.helper.StaticHibernateUtil.flushAndClearSession(StaticHibernateUtil.java:78)
        at 
org.mifos.framework.persistence.TestDatabase.resetMySQLDatabase(TestDatabase.java:54)
        at 
org.mifos.accounts.AccountIntegrationTestCase.tearDown(AccountIntegrationTestCase.java:89)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.tearDown(StandardAccountServiceIntegrationTest.java:76)
        at junit.framework.TestCase.runBare(TestCase.java:140)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)

testLookupLoanFromClientGovernmentIdAndLoanProductShortName(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.344 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more

testFailureOfLookupLoanFromClientGovernmentIdAndLoanProductShortName(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.375 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more

testLookupSavingsFromClientGovernmentIdAndSavingsProductShortName(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.406 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more

testFailureOfLookupSavingsFromClientGovernmentIdAndSavingsProductShortName(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.391 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more

testValidatePaymentWithInvalidPaymentType(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.453 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more

testValidatePaymentWithInvalidLargePaymentAmount(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.328 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more

testValidatePaymentWithInvalidNegativePaymentAmount(org.mifos.accounts.api.StandardAccountServiceIntegrationTest)
  Time elapsed: 0.344 sec  <<< ERROR!
java.lang.RuntimeException: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:689)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:658)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:570)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:561)
        at 
org.mifos.accounts.AccountIntegrationTestCase.createGroupLoanAccount(AccountIntegrationTestCase.java:98)
        at 
org.mifos.accounts.AccountIntegrationTestCase.setUp(AccountIntegrationTestCase.java:70)
        at 
org.mifos.accounts.api.StandardAccountServiceIntegrationTest.setUp(StandardAccountServiceIntegrationTest.java:64)
        at junit.framework.TestCase.runBare(TestCase.java:132)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: 
org.mifos.accounts.productdefinition.exceptions.ProductDefinitionException: 
errors.duplprdinstname
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.validateDuplicateProductOfferingName(PrdOfferingBO.java:387)
        at 
org.mifos.accounts.productdefinition.business.PrdOfferingBO.<init>(PrdOfferingBO.java:146)
        at 
org.mifos.accounts.productdefinition.business.LoanOfferingBO.<init>(LoanOfferingBO.java:196)
        at 
org.mifos.framework.util.helpers.TestObjectFactory.createLoanOffering(TestObjectFactory.java:681)
        ... 24 more


> Fixing  StandardAccountServiceIntegrationTest test case for transactional 
> support.
> ----------------------------------------------------------------------------------
>
>                 Key: MIFOS-3072
>                 URL: http://mifosforge.jira.com/browse/MIFOS-3072
>             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

Reply via email to