Hi all,
I would like to just run a test suite e.g. LoanTestSuite.java (just like
fasttests). How can I do this or is it even doable, perhaps with the proper
sequence of tests? Currently when I run TestLoanBO (from eclipse) I see
errors (trace attached).
Ideally I would also like to run tests based on functionality to verify
things. For e.g. I am also seeing the following errros in the lastes rev
run_test:
[echo] Using database: test
[junit] Running org.mifos.application.ApplicationTestSuite
[junit] Unexpected method call getAccount(1):
[junit] getAccount(2): expected: 1, actual: 0)
[junit] Expectation failure on verify:
[junit] getAccount(2): expected: 1, actual: 0)
[junit] Expectation failure on verify:
[junit] getAccount(4): expected: 1, actual: 0)
And based on email from Ofer I wanted to verify just the
collectionSheetService.java without having to run the whole test suite
(which takes around an hour)
Thanks
Soham
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On
>Behalf Of Ofer Matan
>Sent: Wednesday, January 23, 2008 7:11 AM
>To: 'Developer'
>Subject: Re: [Mifos-developer] build failing
>
>I have not resolved or worked around it yet. I have identified
>that revision
>12257 breaks it (12256 works) which make sense since the file
>with the test that failed was changed in that revision:
>
>/trunk/mifos/test/org/mifos/application/reports/business/servic
>e/CollectionS
>heetServiceTest.java (12257)
>
>I am running on Ubuntu 7.10
>
>-Ofer
Thanks for you help
-Soham
java.lang.RuntimeException: java.lang.RuntimeException:
org.hibernate.exception.SQLGrammarException: could not load an entity:
[org.mifos.application.master.business.MifosCurrency#2]
at
org.mifos.framework.util.helpers.TestObjectFactory.createPeriodicAmountFee(TestObjectFactory.java:997)
at
org.mifos.framework.util.helpers.TestObjectFactory.getFees(TestObjectFactory.java:325)
at
org.mifos.framework.util.helpers.TestObjectFactory.createCenter(TestObjectFactory.java:279)
at
org.mifos.application.accounts.loan.business.TestLoanBO.testCreateLoanAccountWithDecliningInterestNoGracePeriod(TestLoanBO.java:5173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
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.OldTestClassRunner.run(OldTestClassRunner.java:76)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.RuntimeException:
org.hibernate.exception.SQLGrammarException: could not load an entity:
[org.mifos.application.master.business.MifosCurrency#2]
at
org.mifos.framework.util.helpers.TestObjectFactory.createPeriodicAmountFee(TestObjectFactory.java:1033)
at
org.mifos.framework.util.helpers.TestObjectFactory.createPeriodicAmountFee(TestObjectFactory.java:992)
... 22 more
Caused by: org.hibernate.exception.SQLGrammarException: could not load an
entity: [org.mifos.application.master.business.MifosCurrency#2]
at
org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1269)
at org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:139)
at org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:124)
at
org.hibernate.persister.entity.BasicEntityPersister.load(BasicEntityPersister.java:2453)
at
org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:387)
at
org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:368)
at
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:166)
at
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:140)
at
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:201)
at
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:123)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:561)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:556)
at
org.mifos.framework.persistence.TestObjectPersistence.getCurrency(TestObjectPersistence.java:133)
at
org.mifos.framework.util.helpers.TestObjectFactory.getMoneyForMFICurrency(TestObjectFactory.java:1497)
at
org.mifos.framework.util.helpers.TestObjectFactory.createPeriodicAmountFee(TestObjectFactory.java:1029)
... 23 more
Caused by: java.sql.SQLException: Unknown column 'mifoscurre0_.CURRENCY_CODE'
in 'field list'
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3004)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1128)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1222)
at
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:107)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1183)
at org.hibernate.loader.Loader.doQuery(Loader.java:363)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:203)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1255)
... 37 more
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/