Downloaded 1.5 - I'm very impressed by the possibilities this project offers ! Great work!
I got it to work via maven/eclipse to work (I dont really know about maven) and then I tried the unit tests, but some failed. I thought I let you know :
INFO: Event: Wed Jul 07 11:00:00 CEST 2004 Mon/Wed/Fri every week @ 19:00
[junit] Tests run: 9, Failures: 5, Errors: 0, Time elapsed: 0.378 sec
[junit] [ERROR] TEST org.jical.AppTest FAILED
BUILD FAILED
File...... /home/koen/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly
Element... fail
Line...... 181
Column.... 54
There were test failures.
Total time: 1 minutes 5 seconds
Finished at: Sat Nov 13 14:15:18 CET 2004
junit.framework.AssertionFailedError: Event Different: expected:<Fri Jul 30 16:30:00 CEST 2004> but was:<Fri Jul 30 08:30:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testLastFridayOfMonthExceptDecember(AppTest.java:130)
junit.framework.AssertionFailedError: Event Different: expected:<Sun Jul 04 10:00:00 CEST 2004> but was:<Sun Jul 04 02:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatDays(AppTest.java:269)
junit.framework.AssertionFailedError: Event Different: expected:<Mon Jul 05 11:00:00 CEST 2004> but was:<Mon Jul 05 03:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatMondays(AppTest.java:335)
junit.framework.AssertionFailedError: Event Different: expected:<Tue Jul 06 15:00:00 CEST 2004> but was:<Tue Jul 06 07:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatEverySuchDayOfMonth(AppTest.java:388)
junit.framework.AssertionFailedError: Event Different: expected:<Wed Jul 07 19:00:00 CEST 2004> but was:<Wed Jul 07 11:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatEveryMonWedFriWeekly(AppTest.java:452)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Downloaded 1.5 - I'm very impressed by the possibilities this project offers ! Great work!
I got it to work via maven/eclipse to work (I dont really know about maven) and then I tried the unit tests, but some failed. I thought I let you know :
INFO: Event: Wed Jul 07 11:00:00 CEST 2004 Mon/Wed/Fri every week @ 19:00
[junit] Tests run: 9, Failures: 5, Errors: 0, Time elapsed: 0.378 sec
[junit] [ERROR] TEST org.jical.AppTest FAILED
BUILD FAILED
File...... /home/koen/.maven/cache/maven-test-plugin-1.6.2/plugin.jelly
Element... fail
Line...... 181
Column.... 54
There were test failures.
Total time: 1 minutes 5 seconds
Finished at: Sat Nov 13 14:15:18 CET 2004
junit.framework.AssertionFailedError: Event Different: expected:<Fri Jul 30 16:30:00 CEST 2004> but was:<Fri Jul 30 08:30:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testLastFridayOfMonthExceptDecember(AppTest.java:130)
junit.framework.AssertionFailedError: Event Different: expected:<Sun Jul 04 10:00:00 CEST 2004> but was:<Sun Jul 04 02:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatDays(AppTest.java:269)
junit.framework.AssertionFailedError: Event Different: expected:<Mon Jul 05 11:00:00 CEST 2004> but was:<Mon Jul 05 03:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatMondays(AppTest.java:335)
junit.framework.AssertionFailedError: Event Different: expected:<Tue Jul 06 15:00:00 CEST 2004> but was:<Tue Jul 06 07:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatEverySuchDayOfMonth(AppTest.java:388)
junit.framework.AssertionFailedError: Event Different: expected:<Wed Jul 07 19:00:00 CEST 2004> but was:<Wed Jul 07 11:00:00 CEST 2004>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at org.jical.AppTest.testRepeatEveryMonWedFriWeekly(AppTest.java:452)
The same unit tests faiil for me.
It looks like a timezone problem.
Setting the timezone in AppTest to "Australia/Sydney" fixes
the problem.
Here is the snippet of code I added to the top of AppTest.java
static {
SimpleTimeZone.setDefault(SimpleTimeZone.getTimeZone("Australia/Sydney"));
}