[Mifos-developer] 2 failures in my build

0 weergaven
Naar het eerste ongelezen bericht

Upul Godage

ongelezen,
12 jan 2010, 03:52:2612-01-2010
aan Mifos software development
Hi,

I get these 2 failures consistently in the mifos-trunk/application
when doing an "mvn clean install".
i was wondering whether I am the only one getting them.
I'm thinking this could be something to do with the time zone. The
machine is in IST, GMT+5:30.
I extracted the SavingsHelperIntegrationTest.testCalculateDays code
out once and I saw that it gave 182 for GMT X;00 and 183 for GMT X:30
numbers.

Regards,
Upul

-------------------------------------------------------------------------------
Test set: org.mifos.application.accounts.savings.business.SavingsBOIntegrationTest
-------------------------------------------------------------------------------
Tests run: 99, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
100.42 sec <<< FAILURE!
testInterestAdjustmentOnFirstDeposit(org.mifos.application.accounts.savings.business.SavingsBOIntegrationTest)
Time elapsed: 1.161 sec <<< FAILURE!
junit.framework.AssertionFailedError: expected:<20.0> but was:<20.7>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:98)
at junit.framework.Assert.assertEquals(Assert.java:105)
at org.mifos.application.accounts.savings.business.SavingsBOIntegrationTest.testInterestAdjustmentOnFirstDeposit(SavingsBOIntegrationTest.java:513)
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 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.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
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:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


-------------------------------------------------------------------------------
Test set: org.mifos.application.accounts.savings.util.helpers.SavingsHelperIntegrationTest
-------------------------------------------------------------------------------
Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.008
sec <<< FAILURE!
testCalculateDays(org.mifos.application.accounts.savings.util.helpers.SavingsHelperIntegrationTest)
Time elapsed: 0.001 sec <<< FAILURE!
junit.framework.ComparisonFailure: null expected:<18[2]> but was:<18[3]>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at org.mifos.application.accounts.savings.util.helpers.SavingsHelperIntegrationTest.testCalculateDays(SavingsHelperIntegrationTest.java:77)
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 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.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
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:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


--
http://upulgodage.com

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

Udai Gupta

ongelezen,
12 jan 2010, 08:59:1212-01-2010
aan Mifos software development
Hi Upul,

I am also in GMT + 5:30 IST zone. I never got these failures in
SavingsHelperTest (renamed SavingsHelperIntegrationTest in r16534).

Which JDK version are you using?

I am on JDK 1.6_u13

Udai

Upul Godage

ongelezen,
12 jan 2010, 21:53:5212-01-2010
aan Mifos software development
It's 1.6.0_15

--
http://upulgodage.com

Allen beantwoorden
Auteur beantwoorden
Doorsturen
0 nieuwe berichten